Skip to content

Commit ff9a875

Browse files
Fix PR creation command in publish_release.yml
1 parent 6bcf139 commit ff9a875

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish_release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ jobs:
5353
- name: Create PR with GitHub CLI
5454
id: pr
5555
run: |
56-
pr_number=$(gh pr create \
56+
pr_url=$(gh pr create \
5757
--base main \
5858
--head update-version-${{ steps.draft.outputs.tag_name }} \
5959
--title "chore: add VERSION ${{ steps.draft.outputs.tag_name }}" \
6060
--body "Adds VERSION file for release ${{ steps.draft.outputs.tag_name }}" \
61-
--label automated \
62-
--json number \
63-
--jq '.number')
64-
echo $pr_number
65-
echo "pr_number=$pr_number" >> $GITHUB_OUTPUT
61+
--label automated)
62+
63+
pr_number=$(echo "$pr_url" | awk -F/ '{print $NF}')
64+
echo $pr_number
65+
echo "pr_number=$pr_number" >> $GITHUB_OUTPUT
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

0 commit comments

Comments
 (0)