Skip to content

Commit

Permalink
Merge pull request #6 from slidoapp/dominik/show-command-outputs-in-d…
Browse files Browse the repository at this point in the history
…ebug-mode
  • Loading branch information
jozefizso authored Oct 25, 2024
2 parents 5a01503 + 0e575a3 commit 2297742
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
11 changes: 6 additions & 5 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.

2 changes: 1 addition & 1 deletion src/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function exportAttachments(

let output = ''
const options = {
silent: true,
silent: !core.isDebug(),
listeners: {
stdout: (data: Buffer) => {
output += data.toString()
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async function mergeResultBundle(
.concat(inputPaths)
.concat(['--output-path', outputPath])
const options = {
silent: true
silent: !core.isDebug()
}

await exec.exec('xcrun', args, options)
Expand Down
7 changes: 4 additions & 3 deletions src/parser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*eslint-disable @typescript-eslint/no-explicit-any */

import * as core from '@actions/core'
import * as exec from '@actions/exec'
import {promises} from 'fs'
const {readFile} = promises
Expand Down Expand Up @@ -30,7 +31,7 @@ export class Parser {
reference
]
const options = {
silent: true
silent: !core.isDebug()
}

await exec.exec('xcrun', args, options)
Expand All @@ -42,7 +43,7 @@ export class Parser {

let output = ''
const options = {
silent: true,
silent: !core.isDebug(),
listeners: {
stdout: (data: Buffer) => {
output += data.toString()
Expand Down Expand Up @@ -70,7 +71,7 @@ export class Parser {

let output = ''
const options = {
silent: true,
silent: !core.isDebug(),
listeners: {
stdout: (data: Buffer) => {
output += data.toString()
Expand Down

0 comments on commit 2297742

Please sign in to comment.