Skip to content

Commit c57d773

Browse files
committed
fix(github-actions): fix failed command gh pr create
1 parent 5b358e4 commit c57d773

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
with:
3333
ref: ${{ github.head_ref }}
3434
token: ${{ env.GH_TOKEN }}
35+
# needed by "gh pr create"
36+
fetch-depth: 0
3537

3638
- name: Extract version from release branch
3739
if: startsWith(github.head_ref, 'release/')
@@ -68,7 +70,7 @@ jobs:
6870
gh label create ${{ env.PR_LABEL }} --force
6971
gh pr create \
7072
--base ${{ env.BRANCH_DEVELOP }} \
71-
--head ${{ github.event.pull_request.merge_commit_sha }} \
73+
--head ${{ github.head_ref }} \
7274
--title "${{ env.PR_TITLE }}" \
7375
--body "${{ env.PR_BODY }}" \
7476
--label "${{ env.PR_LABEL }}" \

0 commit comments

Comments
 (0)