Skip to content

Commit ebd2950

Browse files
committed
Combine label add into gh pr create to avoid PAT scope failure
1 parent 7f88098 commit ebd2950

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118
env:
119119
GITHUB_TOKEN: ${{ env.FG_PAT }}
120120
run: |
121-
pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
122121
gh label create "Release PR" --description "A Release PR that includes versioning and changelog changes" -c "#FF0000" -f
123-
gh pr edit $pr_url --add-label "Release PR"
122+
pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --label "Release PR" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
124123

0 commit comments

Comments
 (0)