diff --git a/.github/workflows/sync-main-on-release.yml b/.github/workflows/sync-main-on-release.yml index bd24fac2..9da99d53 100644 --- a/.github/workflows/sync-main-on-release.yml +++ b/.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 \ No newline at end of file + git push origin dev:main --force