You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We discovered that during the release the tag that we create contains wrong version (the actual not the target release version), this does not make any functional problems, the code is the proper one, just the project version is set after GitHub Action receives the event, but the tag is already created that time.
Hi @csvii, thank you for sharing these issues! I’d like to work on #2304 – Improve Release - Proper Tagging. I’ll take a look at the existing release workflow and investigate how the tagging can be corrected. Please let me know if there’s anything specific I should consider before starting.
Hi @Lavanya-N24 , thank you for picking this up, what we might consider is first creating a proof of concept PR, to test that the re-tagging works properly. So maybe you can check in a target repo, not that what we would do at the and is something:
Creating a release (resource on Github) with a temp-tag, like 5.7.0-tmp (we are setting this tag manually when we create a release, so we are free to choose such name there now)
the release workflow will update the version in pom files and push it to main (like 5.7.0)
Will create the tag with this pushed commit (name of the tag v5.7.0)
Will edit the release to point to this tag
Do the rest, release, snapshot updated etc.
Maybe you could test first the relevant scripts in other repo to see that everything works as it should
Created a GitHub Release with a temporary tag (e.g., v1.0.0-tmp).
The workflow triggers on the release published event, updates the POM version to 1.0.0, and pushes to the default branch (with a check to avoid crashing if there are no diffs).
Creates and pushes the final tag (v1.0.0) pointing directly to that release commit.
Updates the GitHub release to point to the new tag via gh release edit "$RAW_TAG" --tag "$FINAL_TAG".
Deletes the temporary tag (v1.0.0-tmp).
The final release and tag now cleanly point to the commit containing the release version without -SNAPSHOT.
I will inspect the existing release workflow in this repository and prepare a PR adapting this approach.
All bot review feedback regarding caller token permissions, explicit input passing to reusable workflows, injection-safe environment variable expansion, and post-deploy tag finalization has been addressed and consolidated into a single signed commit.
Activity
csviri commentedon Mar 21, 2024
One solution would be just simply tag the code during the release process, and replace the tag associated with the release with a proper one.
It is really nice now, that the release is bound the the event of actually creating a release in GitHub.
Lavanya-N24 commentedon Aug 18, 2026
Hi @csvii, thank you for sharing these issues! I’d like to work on #2304 – Improve Release - Proper Tagging. I’ll take a look at the existing release workflow and investigate how the tagging can be corrected. Please let me know if there’s anything specific I should consider before starting.
csviri commentedon Aug 19, 2026
Hi @Lavanya-N24 , thank you for picking this up, what we might consider is first creating a proof of concept PR, to test that the re-tagging works properly. So maybe you can check in a target repo, not that what we would do at the and is something:
Maybe you could test first the relevant scripts in other repo to see that everything works as it should
Lavanya-N24 commentedon Aug 19, 2026
Hi @csviri, thanks for the detailed steps! I’ll take a look at the release workflow and start with the proof-of-concept test you suggested.
Lavanya-N24 commentedon Sep 2, 2026
Hi @csviri,
I have tested and verified the re-tagging workflow in a proof-of-concept repository:
https://github.com/Lavanya-N24/release-tagging-poc
Here is the flow tested and verified:
v1.0.0-tmp).publishedevent, updates the POM version to1.0.0, and pushes to the default branch (with a check to avoid crashing if there are no diffs).v1.0.0) pointing directly to that release commit.gh release edit "$RAW_TAG" --tag "$FINAL_TAG".v1.0.0-tmp).The final release and tag now cleanly point to the commit containing the release version without
-SNAPSHOT.I will inspect the existing release workflow in this repository and prepare a PR adapting this approach.
Lavanya-N24 commentedon Sep 2, 2026
Hi @csviri, this PR is ready for review!
It implements the release tagging fix discussed in #2304 using the temporary tag strategy, verified against the PoC repository: https://github.com/Lavanya-N24/release-tagging-poc.
All bot review feedback regarding caller token permissions, explicit input passing to reusable workflows, injection-safe environment variable expansion, and post-deploy tag finalization has been addressed and consolidated into a single signed commit.