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
+15
View File
@@ -0,0 +1,15 @@
name: ci-main
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
ci-ok:
runs-on: ubuntu-latest
steps:
- name: ci sentinel
run: echo "main CI sentinel is green"