From 676780b99912f5e9d8b206b14a65ed03d8405919 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 27 Sep 2023 19:48:19 +0200 Subject: [PATCH] Fix bug in noxfile to allow releases when the version bump already happened. --- noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 1215383a..1d3f83bf 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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",