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
@@ -8,6 +8,7 @@ jobs:
uses: ./.github/workflows/validate-main-green-ci.yml
with:
branch: main
required_contexts: ci-ok|ci-main / ci-ok
promote:
needs: validate-main