fix: Mirror-Action trigger nur auf release-Branch (kein Auto-Deploy von main)
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
name: Mirror to Public Gitea (updates.rhino.nrw)
|
name: Mirror to Public Gitea (updates.rhino.nrw)
|
||||||
|
|
||||||
|
# Trigger: Nur wenn explizit auf den 'release'-Branch gepusht wird.
|
||||||
|
# Das stellt sicher, dass nur geprüfte, validierte Stände ausgeliefert werden.
|
||||||
|
# Workflow auf main: git push origin main:release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [release]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mirror:
|
mirror:
|
||||||
@@ -13,7 +16,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Push mirror to Public Gitea
|
- name: Push mirror to Public Gitea (als 'main')
|
||||||
run: |
|
run: |
|
||||||
git remote add public "http://rhino:${{ secrets.PUBLIC_GITEA_TOKEN }}@172.30.0.4:3053/rhino/StatusQuo_Updates.git"
|
git remote add public "http://rhino:${{ secrets.PUBLIC_GITEA_TOKEN }}@172.30.0.4:3053/rhino/StatusQuo_Updates.git"
|
||||||
git push public main --force
|
git push public HEAD:main --force
|
||||||
|
|||||||
Reference in New Issue
Block a user