Skip to content

ci: add all-checks aggregator job for branch-protection rulesets - #2

Merged
LeTuR merged 1 commit into
mainfrom
ci/all-checks-aggregator
May 25, 2026
Merged

ci: add all-checks aggregator job for branch-protection rulesets#2
LeTuR merged 1 commit into
mainfrom
ci/all-checks-aggregator

Conversation

@LeTuR

@LeTuR LeTuR commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds an All Checks aggregator job to ci.yml that depends on the four existing CI jobs (markdown-lint, schema-validate, link-check, conventional-commits).
  • The job's if: always() + contains(needs.*.result, 'failure'|'cancelled') pattern fails fast on any sub-job failure or cancellation; passes only when every dependency succeeded.

Why

Mirrors the pattern from Thurbeen/thurbox: a single stable check name for repository rulesets to reference. Adding or removing individual CI jobs no longer forces a ruleset edit — just update this job's needs:.

What's next

A follow-up step (no PR — server-side config via gh api) creates a protect-main-branch ruleset on this repo requiring this new All Checks status, plus deletion/non-fast-forward protection and required PRs with rebase merges.

Test plan

Mirrors the pattern from Thurbeen/thurbox. A single `All Checks` job
whose status rolls up `markdown-lint`, `schema-validate`, `link-check`,
and `conventional-commits` means the repository ruleset references one
stable check name; adding or removing individual CI jobs no longer
forces a ruleset edit.

The `if: always()` plus `contains(needs.*.result, 'failure'|'cancelled')`
pattern ensures the aggregator fails fast on any sub-job failure (or
cancellation) and passes only when every dependency succeeded.
@LeTuR
LeTuR merged commit 8549a77 into main May 25, 2026
5 checks passed
@LeTuR
LeTuR deleted the ci/all-checks-aggregator branch May 25, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant