From 8415bf5399df3fb7114b025b4b5bef47aa5c597b Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Fri, 10 May 2024 12:15:55 +0200 Subject: [PATCH] Fix bug when updating main (#973) --- .github/actions/rebase/action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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