Abstract away the required-checks feature (#194)

This commit is contained in:
Patrick Stevens
2024-07-12 21:02:04 +01:00
committed by GitHub
parent 31bd9e22f2
commit 654f760f3a
3 changed files with 4 additions and 48 deletions

View File

@@ -218,15 +218,13 @@ jobs:
run: sh .github/workflows/tag.sh
all-required-checks-complete:
if: ${{ always() }}
needs: [check-dotnet-format, check-nix-format, check-accurate-generations, build, build-nix, linkcheck, flake-check, analyzers, nuget-pack, expected-pack, github-release-plugin-dry-run]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check job statuses
env:
RESULTS: ${{ toJSON(needs) }}
run: python .github/workflows/required_checks.py
- uses: Smaug123/all-required-checks-complete-action@05b40a8c47ef0b175ea326e9abb09802cb67b44e
with:
needs-context: ${{ toJSON(needs) }}
attestation-attribute:
runs-on: ubuntu-latest