Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 6, 2024
1 parent a453e09 commit d0345ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ jobs:
repo: context.repo.repo,
ref: context.payload.after
});
for (let run of commit.data.check_runs) {
if (run.html_url.search(`/${context.runId}/`) >= 0 && run.conclusion === 'failure') {
process.exit(1);
if (commit.status !== 422) {
for (let run of commit.data.check_runs) {
if (run.html_url.search(`/${context.runId}/`) >= 0 && run.conclusion === 'failure') {
process.exit(1);
}
}
}

0 comments on commit d0345ae

Please sign in to comment.