From 4ad9022c512e7ca1f47ae017c0f5d249929700b9 Mon Sep 17 00:00:00 2001 From: Colin Walker Date: Sat, 31 Aug 2019 15:53:47 +0000 Subject: [PATCH] fix: Include debug logs about vars --- index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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);