diff --git a/.github/workflows/sync_with_origin.yml b/.github/workflows/sync_with_origin.yml index 57f4817..cf63d98 100644 --- a/.github/workflows/sync_with_origin.yml +++ b/.github/workflows/sync_with_origin.yml @@ -22,5 +22,5 @@ jobs: run: | git fetch org-repo ${{env.TARGET_BRANCH}} git branch -D ${{env.TARGET_BRANCH}} || git checkout -b ${{env.TARGET_BRANCH}} - git pull org-repo ${{env.TARGET_BRANCH}} + git reset --hard "org-repo/${{ env.TARGET_BRANCH }}" git push origin ${{env.TARGET_BRANCH}} -f