From 1900158522df521c0b0873991517353d07e90d3f Mon Sep 17 00:00:00 2001 From: Zachary Blasczyk Date: Wed, 25 Sep 2024 01:10:59 -0500 Subject: [PATCH] logging --- github/fetch-job-inputs/index.js | 8 ++++++-- integrations/fetch-job-inputs/src/index.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/github/fetch-job-inputs/index.js b/github/fetch-job-inputs/index.js index 152b5751..77a26499 100644 --- a/github/fetch-job-inputs/index.js +++ b/github/fetch-job-inputs/index.js @@ -27883,10 +27883,14 @@ async function run() { core.setOutput("target_name", target?.name); core.setOutput("environment_name", environment?.name); core.setOutput("release_version", release?.version); - for (const [key, value] of Object.entries(config ?? {})) + for (const [key, value] of Object.entries(config ?? {})) { + console.log("config", key, value); core.setOutput(`config_${key}`, value); - for (const [key, value] of Object.entries(variables ?? {})) + } + for (const [key, value] of Object.entries(variables ?? {})) { + console.log("variable", key, value); core.setOutput(`variable_${key}`, value); + } }) .catch((error) => { core.setFailed(`Action failed: ${error.message}`); diff --git a/integrations/fetch-job-inputs/src/index.ts b/integrations/fetch-job-inputs/src/index.ts index ccc5a9ef..41be31fc 100644 --- a/integrations/fetch-job-inputs/src/index.ts +++ b/integrations/fetch-job-inputs/src/index.ts @@ -21,10 +21,14 @@ async function run() { core.setOutput("environment_name", environment?.name); core.setOutput("release_version", release?.version); - for (const [key, value] of Object.entries(config ?? {})) + for (const [key, value] of Object.entries(config ?? {})) { + console.log("config", key, value); core.setOutput(`config_${key}`, value); - for (const [key, value] of Object.entries(variables ?? {})) + } + for (const [key, value] of Object.entries(variables ?? {})) { + console.log("variable", key, value); core.setOutput(`variable_${key}`, value); + } }) .catch((error) => { core.setFailed(`Action failed: ${error.message}`);