Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Sep 25, 2024
1 parent 5cb4546 commit 1900158
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions github/fetch-job-inputs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions integrations/fetch-job-inputs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? {})) {

Check failure on line 24 in integrations/fetch-job-inputs/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined
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}`);
Expand Down

0 comments on commit 1900158

Please sign in to comment.