diff --git a/.github/actions/rebase/action.yaml b/.github/actions/rebase/action.yaml index c83040fb3..1c84b38ac 100644 --- a/.github/actions/rebase/action.yaml +++ b/.github/actions/rebase/action.yaml @@ -22,7 +22,8 @@ runs: git checkout -B main git pull --unshallow origin main - git switch --detach - + # go back to the HEAD commit + git switch --detach ${{ github.sha }} shell: bash - name: Rebase to main