Skip to content

Commit

Permalink
Merge pull request #1290 from darkdragon-001/build-success-job
Browse files Browse the repository at this point in the history
Add job to test if all build jobs succeeded
  • Loading branch information
nanu-c committed Aug 6, 2024
2 parents 15789b3 + 5bc900e commit 5443a24
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,17 @@ concurrency:
jobs:
build:
uses: ./.github/workflows/build.yaml

# Check if all important jobs passed
# This can be used as required status for branch protection rules.
pr-ok:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: All tests ok
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

0 comments on commit 5443a24

Please sign in to comment.