Skip to content

Commit

Permalink
more debugging options
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson14 committed Oct 16, 2024
1 parent 0c8d550 commit 325bfa6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion 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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1password-action",
"version": "3.0.3",
"version": "3.0.4",
"private": true,
"description": "Import items from 1Password securely",
"main": "lib/main.js",
Expand Down
4 changes: 3 additions & 1 deletion src/exec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as exec from '@actions/exec'
import * as core from '@actions/core'

export async function execWithOutput(
command: string,
Expand All @@ -9,7 +10,7 @@ export async function execWithOutput(
let err = ''

const opt = options ?? {}
opt.silent = false
opt.silent = true
opt.listeners = {
stdout: (data: Buffer) => {
out += data.toString()
Expand All @@ -19,6 +20,7 @@ export async function execWithOutput(
}
}
try {
core.info(`Executing command: ${command} ${args ? args.join(' ') : ''}`)
await exec.exec(command, args, opt)
} catch {
if (err) {
Expand Down

0 comments on commit 325bfa6

Please sign in to comment.