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
It would be nice to also output the next/previous tag, not just the version, especially in dry-run mode.
For my case, I'm creating tags and releases with another action, and not creating bump commits. To do this, I need to know the tag that cz would create (and uses for tracking history). Generally the format is simple enough that I can create it from the version myself, but it would be handy to instead have an output I can reference instead.
The action outputs (multiple forms of) version, which isn't the same string as the tag, which by default has a v prefix. But the rules for generating the tag could be anything; if I want to know the eventual tag (since I'm using dry_run to not create commits/tags directly), I have to duplicate the logic in my workflow, instead of relying on cz to output it as part of this action.
Activity
woile commentedon Dec 3, 2025
Could you expand? Isn't what we have enough?
https://github.com/commitizen-tools/commitizen-action?tab=readme-ov-file#outputs
Clockwork-Muse commentedon Dec 3, 2025
The action outputs (multiple forms of) version, which isn't the same string as the tag, which by default has a
vprefix. But the rules for generating the tag could be anything; if I want to know the eventual tag (since I'm usingdry_runto not create commits/tags directly), I have to duplicate the logic in my workflow, instead of relying on cz to output it as part of this action.bearomorphism commentedon May 10, 2026
Triage: feature request — add
next_tag/previous_tagoutputs that incorporatetag_format.This is out of scope for the bug/doc fix sweep I'm doing today, so I'll leave the request as-is for a maintainer.
As a workaround in the meantime, if your
tag_formatis e.g.v\you can derive the tag in a follow-up step: