diff --git a/.github/workflows/merge-upstream.yml b/.github/workflows/merge-upstream.yml index 5226643012f..67b5856f981 100644 --- a/.github/workflows/merge-upstream.yml +++ b/.github/workflows/merge-upstream.yml @@ -38,6 +38,12 @@ jobs: nix run github:emacs-twist/recipes-updater/remain-on-tmp-branch#forceUpdate \ --no-write-lock-file -- upstream/master + # A workaround to prevent peter-evans/create-pull-request from resetting the + # head here: + # + - name: Detach the head + run: git switch --detach `git rev-parse HEAD` + - name: Create a pull request uses: peter-evans/create-pull-request@v5 with: