From ee661b4256feab2660b5f2036d454d9851a99673 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sun, 24 Sep 2023 12:50:29 +0900 Subject: [PATCH] Detach the head to workaround create-pull-request action --- .github/workflows/merge-upstream.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/merge-upstream.yml b/.github/workflows/merge-upstream.yml index aed5bdaf6e5..f593b4179a4 100644 --- a/.github/workflows/merge-upstream.yml +++ b/.github/workflows/merge-upstream.yml @@ -37,6 +37,12 @@ jobs: git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com' nix run .#update-recipes --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: