mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05: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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [published]
|
||||
branches: [dev]
|
||||
|
@ -13,6 +14,8 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: dev
|
||||
clean: false
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
|
@ -22,5 +25,4 @@ jobs:
|
|||
- name: Force push dev to main
|
||||
run: |
|
||||
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