feat: add release-version and development-version overrides to release workflow - #8
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the repository’s release automation by allowing callers of the GitHub Actions Release workflow to override the Maven release and next development versions at trigger time, reducing the need for separate version-bump PRs.
Changes:
- Add
release-versionanddevelopment-versionoptional inputs to the Release workflow and pass them into the release preparation step. - Update
release-preparein theMakefileto optionally pass-DreleaseVersionand-DdevelopmentVersiontomvn release:prepare. - Extend the release preparation step to optionally skip tests during
release:prepare.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Makefile | Adds env-driven flags for Maven release:prepare (release/development version overrides and skip-tests handling). |
| .github/workflows/release.yml | Introduces new workflow_dispatch inputs and wires them into the Prepare release step via env vars. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
nikagra
force-pushed
the
feat/release-version-override
branch
from
April 1, 2026 14:07
f143ab6 to
c7093ae
Compare
dkropachev
requested changes
Apr 1, 2026
nikagra
force-pushed
the
feat/release-version-override
branch
from
April 1, 2026 16:07
c7093ae to
e202cfb
Compare
dkropachev
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds two optional inputs to the Release workflow to eliminate the need for manual version-bump PRs before releasing.
Problem
Previously, to release e.g.
0.14.0.0from a0.13.0.1-SNAPSHOTcodebase, you had to open a separate PR bumping all 7pom.xmlfiles to0.14.0.0-SNAPSHOTfirst, wait for it to merge, then trigger the Release workflow. There was no way to specify the release version at trigger time.Solution
release-version— specify the exact version to release (e.g.0.14.0.0). Without this, Maven defaults to stripping-SNAPSHOTfrom the current version.development-version— specify the next SNAPSHOT version after the release (e.g.0.15.0.0-SNAPSHOT). Without this, Maven auto-increments the last digit (e.g.0.14.0.1-SNAPSHOT).New release flow for
0.14.0.0Trigger the Release workflow with:
release-version: 0.14.0.0development-version: 0.14.0.1-SNAPSHOT(or leave blank to auto-increment)No manual
pom.xmlchanges required.Changes
Makefile:release-preparetarget now readsRELEASE_VERSIONandRELEASE_DEVELOPMENT_VERSIONenv vars and passes them as-DreleaseVersion/-DdevelopmentVersiontomvn release:preparewhen set. Also fixesskip-testshandling so it applies torelease:prepare(not justrelease:perform)..github/workflows/release.yml: addsrelease-versionanddevelopment-versioninputs, passes them as env vars to thePrepare releasestep.