Fix PR creation command in publish_release.yml
This commit is contained in:
committed by
GitHub
parent
6bcf139493
commit
ff9a875561
8
.github/workflows/publish_release.yml
vendored
8
.github/workflows/publish_release.yml
vendored
@@ -53,14 +53,14 @@ jobs:
|
||||
- name: Create PR with GitHub CLI
|
||||
id: pr
|
||||
run: |
|
||||
pr_number=$(gh pr create \
|
||||
pr_url=$(gh pr create \
|
||||
--base main \
|
||||
--head update-version-${{ steps.draft.outputs.tag_name }} \
|
||||
--title "chore: add VERSION ${{ steps.draft.outputs.tag_name }}" \
|
||||
--body "Adds VERSION file for release ${{ steps.draft.outputs.tag_name }}" \
|
||||
--label automated \
|
||||
--json number \
|
||||
--jq '.number')
|
||||
--label automated)
|
||||
|
||||
pr_number=$(echo "$pr_url" | awk -F/ '{print $NF}')
|
||||
echo $pr_number
|
||||
echo "pr_number=$pr_number" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user