Skip to content

Commit

Permalink
ci: add conclusion job for protection rules (#1256)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bayandin <[email protected]>
  • Loading branch information
mikhail-sakhnov and bayandin authored Feb 12, 2025
1 parent 76b4c15 commit 040ee1a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,18 @@ jobs:
- name: Cleanup
if: always()
run: make ${{ matrix.cluster }}-destroy

# This job simplifies setting branch protection rules (in GitHub UI)
# by allowing to set only this job instead of listing many others.
# It also makes it easier to rename or parametrise jobs (using matrix)
# which requires changes in branch protection rules
conclusion:
name: Conclusion
needs: [ e2e-tests ]
if: always()
runs-on: ubuntu-22.04
steps:
- name: Fail the job if any of the dependencies do not succeed or are skipped
run: exit 1
if: |
contains(needs.*.result, 'failed') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')

0 comments on commit 040ee1a

Please sign in to comment.