From a416967ed16a209d2dc5d74da913555696d25291 Mon Sep 17 00:00:00 2001 From: Colin Walker Date: Sat, 31 Aug 2019 16:09:42 +0000 Subject: [PATCH] fix: Show variables in debug --- index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index df9f23c8..181b546a 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,6 @@ function getInput(name, options) { if (options && options.required && !val) { throw new Error(`Input required and not supplied: ${name}`); } - core.debug(`param: ${name} = "${val}"`) return val } @@ -94,6 +93,15 @@ async function run() { const task = getInput("task"); const version = getInput("version"); + core.debug(`param: track = "${track}"`) + core.debug(`param: release = "${release}"`) + core.debug(`param: namespace = "${namespace}"`) + core.debug(`param: chart = "${chart}"`) + core.debug(`param: values = "${values}"`) + core.debug(`param: dryRun = "${dryRun}"`) + core.debug(`param: task = "${task}"`) + core.debug(`param: version = "${version}"`) + // Setup command options and arguments. const opts = { env: {} }; const args = [ @@ -123,7 +131,9 @@ async function run() { // Actually execute the deployment here. if (task === "remove") { - await exec.exec("helm", ["delete", release, "--purge"], opts); + await exec.exec("helm", ["delete", release, "--purge"], { + ...opts, ignoreReturnCode: true, + }); } else { await exec.exec("helm", args, opts); }