Skip to content

Commit a4e35f5

Browse files
committed
ci: add alls-green action for single required check
Add a 'check' job that aggregates all CI job results using the alls-green action. This enables configuring a single required status check in GitHub branch protection settings.
1 parent 2cf7784 commit a4e35f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/shared.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,12 @@ jobs:
7777

7878
- name: Check README snippets are up to date
7979
run: uv run --frozen scripts/update_readme_snippets.py --check
80+
81+
check:
82+
if: always()
83+
needs: [pre-commit, test, readme-snippets]
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
87+
with:
88+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)