Add platform

This commit is contained in:
Tom Hu 2021-08-19 14:19:35 -07:00
parent be75906042
commit 53cd6a7259
No known key found for this signature in database
GPG key ID: 6D87FFF4D2F6D66F
3 changed files with 12 additions and 7 deletions

14
dist/index.js vendored
View file

@ -1,7 +1,7 @@
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
/***/ 5241: /***/ 7351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -135,7 +135,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(5241); const command_1 = __nccwpck_require__(7351);
const file_command_1 = __nccwpck_require__(717); const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(5278); const utils_1 = __nccwpck_require__(5278);
const os = __importStar(__nccwpck_require__(2087)); const os = __importStar(__nccwpck_require__(2087));
@ -626,7 +626,7 @@ const os = __importStar(__nccwpck_require__(2087));
const events = __importStar(__nccwpck_require__(8614)); const events = __importStar(__nccwpck_require__(8614));
const child = __importStar(__nccwpck_require__(3129)); const child = __importStar(__nccwpck_require__(3129));
const path = __importStar(__nccwpck_require__(5622)); const path = __importStar(__nccwpck_require__(5622));
const io = __importStar(__nccwpck_require__(7351)); const io = __importStar(__nccwpck_require__(7436));
const ioUtil = __importStar(__nccwpck_require__(1962)); const ioUtil = __importStar(__nccwpck_require__(1962));
const timers_1 = __nccwpck_require__(8213); const timers_1 = __nccwpck_require__(8213);
/* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/unbound-method */
@ -2221,7 +2221,7 @@ exports.getCmdPath = getCmdPath;
/***/ }), /***/ }),
/***/ 7351: /***/ 7436:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@ -12842,10 +12842,10 @@ var external_fs_ = __nccwpck_require__(5747);
var external_https_ = __nccwpck_require__(7211); var external_https_ = __nccwpck_require__(7211);
// EXTERNAL MODULE: external "path" // EXTERNAL MODULE: external "path"
var external_path_ = __nccwpck_require__(5622); var external_path_ = __nccwpck_require__(5622);
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(1514);
// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js // EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js
var core = __nccwpck_require__(2186); var core = __nccwpck_require__(2186);
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(1514);
// EXTERNAL MODULE: ./node_modules/@actions/github/lib/github.js // EXTERNAL MODULE: ./node_modules/@actions/github/lib/github.js
var github = __nccwpck_require__(5438); var github = __nccwpck_require__(5438);
;// CONCATENATED MODULE: ./package.json ;// CONCATENATED MODULE: ./package.json
@ -13102,10 +13102,12 @@ var src_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argu
let failCi; let failCi;
try { try {
const { execArgs, options, failCi } = src_buildExec(); const { execArgs, options, failCi } = src_buildExec();
const platform = getPlatform(); const platform = getPlatform();
core.info(`==> ${platform} OS detected`);
if (!isValidPlatform()) { if (!isValidPlatform()) {
setFailure(`Codecov: Encountered an unexpected platform: ${platform}`, failCi); setFailure(`Codecov: Encountered an unexpected platform: ${platform}`, failCi);
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -2,6 +2,7 @@ import * as fs from 'fs';
import * as https from 'https'; import * as https from 'https';
import * as path from 'path'; import * as path from 'path';
import * as core from '@actions/core';
import * as exec from '@actions/exec'; import * as exec from '@actions/exec';
import buildExec from './buildExec'; import buildExec from './buildExec';
@ -20,6 +21,8 @@ let failCi;
try { try {
const {execArgs, options, failCi} = buildExec(); const {execArgs, options, failCi} = buildExec();
const platform = getPlatform(); const platform = getPlatform();
core.info(`==> ${platform} OS detected`);
if (!isValidPlatform()) { if (!isValidPlatform()) {
setFailure( setFailure(
`Codecov: Encountered an unexpected platform: ${platform}`, `Codecov: Encountered an unexpected platform: ${platform}`,