Do not log functions printing startup input

pull/310/head
Frostebite 2021-12-30 01:59:52 +00:00
parent 5ba96e4be6
commit 453de6b8ef
3 changed files with 9 additions and 9 deletions

8
dist/index.js vendored
View File

@ -3912,7 +3912,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
const core = __importStar(__webpack_require__(42186)); const core = __importStar(__webpack_require__(42186));
const exec_1 = __webpack_require__(71514); const exec_1 = __webpack_require__(71514);
class System { class System {
static run(command, arguments_ = [], options = {}, shouldDebug = true) { static run(command, arguments_ = [], options = {}, shouldLog = true) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
let result = ''; let result = '';
let error = ''; let error = '';
@ -3929,13 +3929,13 @@ class System {
}, },
}; };
const showOutput = () => { const showOutput = () => {
if (debug !== '' && shouldDebug) { if (debug !== '' && shouldLog) {
core.debug(debug); core.debug(debug);
} }
if (result !== '' && shouldDebug) { if (result !== '' && shouldLog) {
core.info(result); core.info(result);
} }
if (error !== '' && shouldDebug) { if (error !== '' && shouldLog) {
core.warning(error); core.warning(error);
} }
}; };

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@ import * as core from '@actions/core';
import { exec } from '@actions/exec'; import { exec } from '@actions/exec';
class System { class System {
static async run(command, arguments_: any = [], options = {}, shouldDebug = true) { static async run(command, arguments_: any = [], options = {}, shouldLog = true) {
let result = ''; let result = '';
let error = ''; let error = '';
let debug = ''; let debug = '';
@ -20,15 +20,15 @@ class System {
}; };
const showOutput = () => { const showOutput = () => {
if (debug !== '' && shouldDebug) { if (debug !== '' && shouldLog) {
core.debug(debug); core.debug(debug);
} }
if (result !== '' && shouldDebug) { if (result !== '' && shouldLog) {
core.info(result); core.info(result);
} }
if (error !== '' && shouldDebug) { if (error !== '' && shouldLog) {
core.warning(error); core.warning(error);
} }
}; };