From db0c912fce64c74532136ab6d3eda80d7a25904b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 7 Nov 2025 16:55:12 -0500 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06a63511e..44db34e64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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'