Skip to content

Commit

Permalink
add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson14 committed Oct 16, 2024
1 parent 7d9911c commit 7db610c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ export async function execWithOutput(
},
stderr: (data: Buffer) => {
err += data.toString().trim()
},
debug: (data: string) => {
core.debug(data)
}
}
try {
core.info(`Executing command: ${command} ${args ? args.join(' ') : ''}`)
core.debug(`Executing command: ${command} ${args ? args.join(' ') : ''}`)
await exec.exec(command, args, opt)
} catch {
if (err) {
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ async function requestItems(
)[0].value

const usernameOutputName = `${itemRequest.outputName}_username`
core.debug(`Setting username variable ${usernameOutputName}`)
core.setOutput(usernameOutputName, username)
const passwordOutputName = `${itemRequest.outputName}_password`
core.debug(`Setting password variable ${passwordOutputName}`)
core.setSecret(password)
core.setOutput(passwordOutputName, password)

Expand All @@ -138,6 +140,7 @@ async function requestItems(
}

const passwordOutputName = `${itemRequest.outputName}_password`
core.debug(`Setting password variable ${passwordOutputName}`)
core.setSecret(password)
core.setOutput(passwordOutputName, password)

Expand All @@ -160,6 +163,7 @@ async function requestItems(
}

const documentOutputName = `${itemRequest.outputName}_filename`
core.debug(`Setting document variable ${documentOutputName}`)
core.setOutput(documentOutputName, filename)

break
Expand Down

0 comments on commit 7db610c

Please sign in to comment.