Do not log functions printing startup input
parent
5ba96e4be6
commit
453de6b8ef
|
|
@ -3912,7 +3912,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
const core = __importStar(__webpack_require__(42186));
|
||||
const exec_1 = __webpack_require__(71514);
|
||||
class System {
|
||||
static run(command, arguments_ = [], options = {}, shouldDebug = true) {
|
||||
static run(command, arguments_ = [], options = {}, shouldLog = true) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let result = '';
|
||||
let error = '';
|
||||
|
|
@ -3929,13 +3929,13 @@ class System {
|
|||
},
|
||||
};
|
||||
const showOutput = () => {
|
||||
if (debug !== '' && shouldDebug) {
|
||||
if (debug !== '' && shouldLog) {
|
||||
core.debug(debug);
|
||||
}
|
||||
if (result !== '' && shouldDebug) {
|
||||
if (result !== '' && shouldLog) {
|
||||
core.info(result);
|
||||
}
|
||||
if (error !== '' && shouldDebug) {
|
||||
if (error !== '' && shouldLog) {
|
||||
core.warning(error);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@ import * as core from '@actions/core';
|
|||
import { exec } from '@actions/exec';
|
||||
|
||||
class System {
|
||||
static async run(command, arguments_: any = [], options = {}, shouldDebug = true) {
|
||||
static async run(command, arguments_: any = [], options = {}, shouldLog = true) {
|
||||
let result = '';
|
||||
let error = '';
|
||||
let debug = '';
|
||||
|
|
@ -20,15 +20,15 @@ class System {
|
|||
};
|
||||
|
||||
const showOutput = () => {
|
||||
if (debug !== '' && shouldDebug) {
|
||||
if (debug !== '' && shouldLog) {
|
||||
core.debug(debug);
|
||||
}
|
||||
|
||||
if (result !== '' && shouldDebug) {
|
||||
if (result !== '' && shouldLog) {
|
||||
core.info(result);
|
||||
}
|
||||
|
||||
if (error !== '' && shouldDebug) {
|
||||
if (error !== '' && shouldLog) {
|
||||
core.warning(error);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue