mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore(ci): update branch sync workflow
This commit is contained in:
parent
42eaf9f3b5
commit
80a66669e0
1 changed files with 4 additions and 2 deletions
6
.github/workflows/sync-main-on-release.yml
vendored
6
.github/workflows/sync-main-on-release.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
name: Sync branch
|
name: Sync branch
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
@ -13,6 +14,8 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: dev
|
||||||
|
clean: false
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
|
@ -22,5 +25,4 @@ jobs:
|
||||||
- name: Force push dev to main
|
- name: Force push dev to main
|
||||||
run: |
|
run: |
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout dev
|
git push origin dev:main --force
|
||||||
git push origin dev:main --force
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue