Fix patch release workflow to use NEXT_RELEASE for version updates #19303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
patch-releasetarget inrelease.mkhad an inconsistency that caused confusion during patch releases. When releasing version8.18.7, the workflow would:update-8.18.8(usingNEXT_RELEASE)8.18.7(usingRELEASE_VERSION)This was confusing because the branch name suggested updating to
8.18.8, but the actual version updates pointed to8.18.7.Solution
Updated the
patch-releasetarget to consistently useNEXT_RELEASE(which is automatically calculated asRELEASE_VERSION + 1) throughout the workflow:update-versionto use$(NEXT_RELEASE)instead of$(RELEASE_VERSION)$(NEXT_RELEASE)$(NEXT_RELEASE)Result
Now when releasing version
8.18.7, the workflow correctly:update-8.18.88.18.8All references are now consistent! This eliminates the need for manual calculation and makes the workflow's intent clear: preparing the repository for the next version after the release.
Testing
Verified with multiple release versions:
8.18.7→8.18.8✅9.0.5→9.0.6✅10.1.0→10.1.1✅Fixes #18637 (Goal 1)
Original prompt
Fixes #18853
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.