Skip to content

Commit

Permalink
Fix bug in noxfile to allow releases when the version bump already ha…
Browse files Browse the repository at this point in the history
…ppened.
  • Loading branch information
felixfontein committed Sep 27, 2023
1 parent 7036744 commit 676780b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def bump(session: nox.Session):
"or two positional arguments must be provided."
)
install(session, "antsibull-changelog", "hatch")
session.run("hatch", "version", version)
current_version = session.run("hatch", "version", silent=True).strip()
if version != current_version:
session.run("hatch", "version", version)
if len(session.posargs) > 1:
fragment = session.run(
"python",
Expand Down

0 comments on commit 676780b

Please sign in to comment.