From 9aaa45f95d2182a01dfd81bec51f8aeff316e85f Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Mon, 26 Oct 2020 21:45:10 +0100 Subject: [PATCH] Handle action params correctly --- action/dist/index.js | 4 ++-- action/index.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/action/dist/index.js b/action/dist/index.js index f3b32049..a7843a01 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -900,7 +900,7 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_actions_github_lib_gith console.log(`Repositories to use | ${repositories}`) //Die on plugins errors - const die = core.getInput("plugins_errors_fatal") || false + const die = bool(core.getInput("plugins_errors_fatal")) console.log(`Plugin errors | ${die ? "die" : "ignore"}`) //Built query @@ -911,7 +911,7 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_actions_github_lib_gith console.log(`Render | complete`) //Commit to repository - const dryrun = core.getInput("dryrun") || false + const dryrun = bool(core.getInput("dryrun")) if (dryrun) console.log(`Dry-run | complete`) else { diff --git a/action/index.mjs b/action/index.mjs index eea74ecf..727d9f93 100644 --- a/action/index.mjs +++ b/action/index.mjs @@ -106,7 +106,7 @@ console.log(`Repositories to use | ${repositories}`) //Die on plugins errors - const die = core.getInput("plugins_errors_fatal") || false + const die = bool(core.getInput("plugins_errors_fatal")) console.log(`Plugin errors | ${die ? "die" : "ignore"}`) //Built query @@ -117,7 +117,7 @@ console.log(`Render | complete`) //Commit to repository - const dryrun = core.getInput("dryrun") || false + const dryrun = bool(core.getInput("dryrun")) if (dryrun) console.log(`Dry-run | complete`) else {