diff --git a/.github/workflows/sync_main_latest.yml b/.github/workflows/sync_main_latest.yml index a196b5dae..b96fab3da 100644 --- a/.github/workflows/sync_main_latest.yml +++ b/.github/workflows/sync_main_latest.yml @@ -1,5 +1,6 @@ name: Sync main and latest on: + workflow_dispatch: push: branches: - main @@ -13,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Merge main into latest - run: git checkout latest && git merge main + run: git fetch && git switch latest && git merge origin/main - name: Create pull request id: cpr