Skip to content

Commit

Permalink
Detach the head to prevent from resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Sep 24, 2023
1 parent bec2988 commit 84f9fe7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/merge-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
# <https://github.com/peter-evans/create-pull-request/blob/d806186ee3288c60a352af9852b6b18afbbfd87e/src/create-or-update-branch.ts#L178>
- 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:
Expand Down

0 comments on commit 84f9fe7

Please sign in to comment.