mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-06 06:29:24 +00:00
Add platform
This commit is contained in:
parent
be75906042
commit
53cd6a7259
3 changed files with 12 additions and 7 deletions
|
|
@ -2,6 +2,7 @@ import * as fs from 'fs';
|
|||
import * as https from 'https';
|
||||
import * as path from 'path';
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import * as exec from '@actions/exec';
|
||||
|
||||
import buildExec from './buildExec';
|
||||
|
|
@ -20,6 +21,8 @@ let failCi;
|
|||
try {
|
||||
const {execArgs, options, failCi} = buildExec();
|
||||
const platform = getPlatform();
|
||||
core.info(`==> ${platform} OS detected`);
|
||||
|
||||
if (!isValidPlatform()) {
|
||||
setFailure(
|
||||
`Codecov: Encountered an unexpected platform: ${platform}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue