File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
.github/local-actions/branch-manager Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ export interface CommonCmdOpts {
3131
3232/** Interface describing the options for spawning a process synchronously. */
3333export interface SpawnSyncOptions
34- extends CommonCmdOpts ,
35- Omit < _SpawnSyncOptions , 'shell' | 'stdio' | 'input' > { }
34+ extends CommonCmdOpts , Omit < _SpawnSyncOptions , 'shell' | 'stdio' | 'input' > { }
3635
3736/** Interface describing the options for spawning a process. */
3837export interface SpawnOptions extends CommonCmdOpts , Omit < _SpawnOptions , 'shell' | 'stdio' > { }
@@ -222,9 +221,8 @@ function processAsyncCmd(
222221 // stderr due to a race condition around exiting.
223222 childProcess . on ( 'close' , ( exitCode , signal ) => {
224223 const exitDescription = exitCode !== null ? `exit code "${ exitCode } "` : `signal "${ signal } "` ;
225- const printFn = options . mode === 'on-error' ? Log . error : Log . debug ;
226224 const status = statusFromExitCodeAndSignal ( exitCode , signal ) ;
227-
225+ const printFn = status !== 0 && options . mode === 'on-error' ? Log . error : Log . debug ;
228226 printFn ( `Command "${ command } " completed with ${ exitDescription } .` ) ;
229227 printFn ( `Process output: \n${ logOutput } ` ) ;
230228
You can’t perform that action at this time.
0 commit comments