Browse Source

chore(ci): update branch sync workflow

Hintay 4 months ago
parent
commit
80a66669e0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      .github/workflows/sync-main-on-release.yml

+ 4 - 2
.github/workflows/sync-main-on-release.yml

@@ -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