Skip to content

Commit 29892fa

Browse files
Copilotmrjf
andauthored
fix: exit on credential setup failure in sync-branches pre-step
Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/10022818-e9ec-4796-841a-d439e309e4b3 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
1 parent 34c1fc2 commit 29892fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflows/sync-branches.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ steps:
3131
function git(...args) {
3232
const result = spawnSync('git', args, { encoding: 'utf-8' });
3333
if (result.status !== 0) {
34-
console.log('git ' + args.join(' ') + ' failed: ' + result.stderr);
34+
console.error('git ' + args.join(' ') + ' failed: ' + result.stderr);
35+
process.exit(1);
3536
}
3637
return result;
3738
}

0 commit comments

Comments
 (0)