Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/semantic_release/cli/commands/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,8 @@ def version( # noqa: C901
gha_output.version = new_version
ctx.call_on_close(gha_output.write_if_possible)

# Make string variant of version && Translate to tag if necessary
version_to_print = (
str(new_version)
if not print_only_tag
else translator.str_to_tag(str(new_version))
)
# Make string variant of version or appropriate tag as necessary
version_to_print = str(new_version) if not print_only_tag else new_version.as_tag()

# Print the new version so that command-line output capture will work
click.echo(version_to_print)
Expand Down
Loading
Loading