@@ -161,10 +161,8 @@ jobs:
161161 - name : Create version bump PR
162162 if : steps.bump_check.outputs.needed == 'true'
163163 env :
164- GH_TOKEN : ${{ secrets.PR_BUMP_TOKEN || github.token }}
164+ GH_TOKEN : ${{ github.token }}
165165 run : |
166- git remote set-url origin \
167- "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
168166 git checkout -b "${{ steps.next_version.outputs.branch }}" origin/develop
169167 git merge origin/main --no-edit
170168
@@ -191,22 +189,35 @@ jobs:
191189 git commit -m "chore: bump version to ${{ steps.next_version.outputs.version }}"
192190 git push origin "${{ steps.next_version.outputs.branch }}"
193191
194- gh pr create \
192+ pr_url=$( gh pr create \
195193 --base develop \
196194 --head "${{ steps.next_version.outputs.branch }}" \
197195 --title "chore: bump version to ${{ steps.next_version.outputs.version }}" \
198- --body "$(cat <<'EOF'
199- Automated patch version bump after publishing ${{ steps.version.outputs.version }}.
196+ --body "Automated patch version bump after publishing ${{ steps.version.outputs.version }}.
200197
201- This merges `main` back into `develop` to pick up the changelog and any
198+ This merges \ `main\ ` back into \ `develop\ ` to pick up the changelog and any
202199 other release-branch artifacts, then sets the working version to the next
203200 expected patch release. Change this to a minor or major bump if the next
204201 release warrants it.
205202
206203 Dependencies are refreshed to their latest compatible versions
207- via `uv lock --upgrade`.
208- EOF
209- )"
204+ via \`uv lock --upgrade\`.")
205+
206+ pr_number="${pr_url##*/}"
207+ gh pr edit "$pr_number" --body "Automated patch version bump after publishing ${{ steps.version.outputs.version }}.
208+
209+ This merges \`main\` back into \`develop\` to pick up the changelog and any
210+ other release-branch artifacts, then sets the working version to the next
211+ expected patch release. Change this to a minor or major bump if the next
212+ release warrants it.
213+
214+ Dependencies are refreshed to their latest compatible versions
215+ via \`uv lock --upgrade\`.
216+
217+ Ref #${pr_number}"
218+
219+ gh pr close "$pr_number"
220+ gh pr reopen "$pr_number"
210221
211222 gh pr merge \
212223 --auto --merge --delete-branch \
0 commit comments