Skip to content

Commit

Permalink
fix: Show variables in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
colinjfw committed Aug 31, 2019
1 parent 76181ec commit a416967
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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 = [
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit a416967

Please sign in to comment.