From 5b9d0750db13a39bec3b54828b0b6b00d50767ca Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 28 Jul 2023 10:23:01 +0900 Subject: [PATCH] Fix PR creation by specifying the branch on release --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2070c62..d17223d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -393,5 +393,8 @@ jobs: git add sig git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - git commit -m "Update signatures of ${TAG_NAME#jq-}" - gh pr create --title "Update signatures of ${TAG_NAME#jq-}" --body "" + title="Update signatures of ${TAG_NAME#jq-}" + git commit -m "$title" + branch="update-signatures-${TAG_NAME#jq-}" + git push origin "HEAD:$branch" + gh pr create --title "$title" --body "" --head "$branch"