Do not log functions printing startup input

pull/310/head
Frostebite 2021-12-30 01:56:48 +00:00
parent 56ee75bc70
commit 5ba96e4be6
4 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -420,7 +420,7 @@ class CLI {
const actionYamlReader = new action_yaml_1.ActionYamlReader();
for (const element of properties) {
program.option(`--${element} <${element}>`, actionYamlReader.GetActionYamlValue(element));
if (__1.Input[element] !== undefined && __1.Input[element] !== '') {
if (__1.Input[element] !== undefined && __1.Input[element] !== '' && typeof __1.Input[element] !== `function`) {
core.info(`${element} ${__1.Input[element]}`);
}
}
@ -3932,10 +3932,10 @@ class System {
if (debug !== '' && shouldDebug) {
core.debug(debug);
}
if (result !== '') {
if (result !== '' && shouldDebug) {
core.info(result);
}
if (error !== '') {
if (error !== '' && shouldDebug) {
core.warning(error);
}
};

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@ export class CLI {
const actionYamlReader: ActionYamlReader = new ActionYamlReader();
for (const element of properties) {
program.option(`--${element} <${element}>`, actionYamlReader.GetActionYamlValue(element));
if (Input[element] !== undefined && Input[element] !== '') {
if (Input[element] !== undefined && Input[element] !== '' && typeof Input[element] !== `function`) {
core.info(`${element} ${Input[element]}`);
}
}

View File

@ -24,11 +24,11 @@ class System {
core.debug(debug);
}
if (result !== '') {
if (result !== '' && shouldDebug) {
core.info(result);
}
if (error !== '') {
if (error !== '' && shouldDebug) {
core.warning(error);
}
};