Skip to content

Commit a416967

Browse files
committed
fix: Show variables in debug
1 parent 76181ec commit a416967

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ function getInput(name, options) {
7474
if (options && options.required && !val) {
7575
throw new Error(`Input required and not supplied: ${name}`);
7676
}
77-
core.debug(`param: ${name} = "${val}"`)
7877
return val
7978
}
8079

@@ -94,6 +93,15 @@ async function run() {
9493
const task = getInput("task");
9594
const version = getInput("version");
9695

96+
core.debug(`param: track = "${track}"`)
97+
core.debug(`param: release = "${release}"`)
98+
core.debug(`param: namespace = "${namespace}"`)
99+
core.debug(`param: chart = "${chart}"`)
100+
core.debug(`param: values = "${values}"`)
101+
core.debug(`param: dryRun = "${dryRun}"`)
102+
core.debug(`param: task = "${task}"`)
103+
core.debug(`param: version = "${version}"`)
104+
97105
// Setup command options and arguments.
98106
const opts = { env: {} };
99107
const args = [
@@ -123,7 +131,9 @@ async function run() {
123131

124132
// Actually execute the deployment here.
125133
if (task === "remove") {
126-
await exec.exec("helm", ["delete", release, "--purge"], opts);
134+
await exec.exec("helm", ["delete", release, "--purge"], {
135+
...opts, ignoreReturnCode: true,
136+
});
127137
} else {
128138
await exec.exec("helm", args, opts);
129139
}

0 commit comments

Comments
 (0)