Skip to content

Commit

Permalink
Merge pull request #7810 from LedgerHQ/fix/prevent-merge-with-cancell…
Browse files Browse the repository at this point in the history
…ed-jobs

Prevent PR with cancelled jobs to be merged
  • Loading branch information
KVNLS committed Sep 12, 2024
2 parents 12472d1 + 6a82e0c commit a333038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ jobs:
if: always() && !cancelled()
steps:
- name: Check result
if: contains(needs.*.result, 'failure')
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ jobs:
if: always() && !cancelled()
steps:
- name: Check result
if: contains(needs.*.result, 'failure')
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

0 comments on commit a333038

Please sign in to comment.