ci(release): gate promote-main on explicit main checks (#349)

* ci(release): gate promote-main on explicit main checks

Add an always-on ci-main workflow that produces a stable check name, and validate that check via check runs (not branch protection APIs). Wire promote-main-to-next to require ci-main / ci-ok and document the required check in the release SOP.

* ci(release): accept ci-ok or UI-style name in main promote gate

GitHub check run names for normal workflows are often the job name only;
keep optional match for the UI-style workflow/job label. Drop unused
statuses:read permission.

Made-with: Cursor
This commit is contained in:
cucadmuh
2026-04-29 00:22:51 +03:00
committed by GitHub
parent 8fe75b3d74
commit a9573625f4
4 changed files with 77 additions and 63 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ Rules:
1. Run workflow: **Promote main to next**.
2. Workflow behavior:
- validates that `main` checks are green before promotion
- validates required `main` checks before promotion (default: `ci-ok`, or UI-style `ci-main / ci-ok`; either satisfies the gate)
- resets `next` to `main` snapshot
- auto-bump package version in `next` to next `-rc.N`
- commit and push version bump