mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
ci: Add a required-checks context
This copies the approach taken in bcvk, so when we change our CI jobs I don't need to go and manually edit the GH configuration. (A followup step here is to have automation to cut over all repositories to do things this way) Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -200,3 +200,16 @@ jobs:
|
||||
with:
|
||||
name: tmt-log-PR-${{ github.event.number }}-${{ matrix.test_os }}-cfs-${{ env.ARCH }}
|
||||
path: /var/tmp/tmt
|
||||
|
||||
# Sentinel job for required checks - configure this job name in repository settings
|
||||
required-checks:
|
||||
if: always()
|
||||
needs: [cargo-deny, validate, test-integration, test-integration-cfs]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: exit 1
|
||||
if: >-
|
||||
needs.cargo-deny.result != 'success' ||
|
||||
needs.validate.result != 'success' ||
|
||||
needs.test-integration.result != 'success' ||
|
||||
needs.test-integration-cfs.result != 'success'
|
||||
|
||||
Reference in New Issue
Block a user