diff --git a/index.js b/index.js index 369689a1..29c60f5b 100644 --- a/index.js +++ b/index.js @@ -56,14 +56,15 @@ function chartName(name) { function getInput(name, options) { const context = github.context; const deployment = context.payload.deployment; - const val = core.getInput(name, { ...options, required: false }) + let val = core.getInput(name, { ...options, required: false }) if (deployment) { - if (deployment[name]) return deployment[name]; - if (deployment.payload[name]) return deployment.payload[name]; + if (deployment[name]) val = deployment[name]; + if (deployment.payload[name]) val = deployment.payload[name]; } if (options && options.required && !val) { throw new Error(`Input required and not supplied: ${name}`); } + core.debug(`param: ${name} = "${val.replace('\n', ' ')}"`) return val } @@ -110,8 +111,6 @@ async function run() { } await writeFile("./values.yml", values); - await exec.exec("cat", "./values.yml") - // Actually execute the deployment here. if (task === "remove") { await exec.exec("helm", ["delete", release, "--purge"], opts);