Skip to content

Commit b775a1d

Browse files
leogdionclaude
andcommitted
Add all-done aggregator job to prevent cancelled jobs appearing as failures
Cancelled jobs from concurrent workflow runs show as red failures in PR checks. The all-done job depends on lint and docs (which aggregate all build jobs), runs with if: always(), and only fails on real failures — not cancellations or skips. Configure branch protection to require All Done as the single required check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6a9f9f5 commit b775a1d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/SyntaxKit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,17 @@ jobs:
344344
- uses: actions/checkout@v6
345345
- name: Validate Documentation
346346
run: ./Scripts/validate-docs.sh
347+
348+
all-done:
349+
name: All Done
350+
if: always()
351+
needs: [lint, docs]
352+
runs-on: ubuntu-latest
353+
steps:
354+
- name: Check for failures
355+
run: |
356+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
357+
echo "One or more required jobs failed."
358+
exit 1
359+
fi
360+
echo "All required checks passed, were skipped, or were cancelled."

0 commit comments

Comments
 (0)