Skip to content

Commit

Permalink
PR Bot - Dont throw error on return code 1
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm authored Nov 6, 2022
1 parent bbcb790 commit e0e10b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/pr-bot/shared/persistentState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function commitStateToRepo() {
`Unable to get most recent repo contents, commit may fail: ${err}`
);
}
const changes = await exec.exec("git diff-index --quiet origin/pr-bot-state");
const changes = await exec.exec("git diff-index --quiet origin/pr-bot-state", [], {ignoreReturnCode: true});
if (changes == 1) {
await exec.exec("git add state/*");
await exec.exec(`git commit -m "Updating config from bot"`);
Expand Down

0 comments on commit e0e10b9

Please sign in to comment.