mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-07 12:49:06 +00:00
ci: promote dev → main (prod), not a separate prod branch (#3)
Aligns the promotion target with the locked migration architecture (main = PROD, dev = integration). Plain ref push is fast-forward-only; branch protection on main rejects non-FF pushes, so a diverged main fails loudly instead of force-moving prod.
This commit is contained in:
parent
35bc9e22f4
commit
5a5818f4c2
1 changed files with 6 additions and 4 deletions
10
.github/workflows/promote_dev_to_prod.yml
vendored
10
.github/workflows/promote_dev_to_prod.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Promote dev to prod
|
name: Promote dev to main (prod)
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -9,7 +9,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: promote-dev-to-prod
|
group: promote-dev-to-main
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -20,6 +20,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Fast-forward prod to dev
|
- name: Fast-forward main (PROD) to dev
|
||||||
|
# main is the production branch; a plain ref push is fast-forward-only
|
||||||
|
# (branch protection rejects non-FF), so a diverged main fails loudly.
|
||||||
run: |
|
run: |
|
||||||
git push origin HEAD:refs/heads/prod
|
git push origin HEAD:refs/heads/main
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue