From 7418d5af4ac09362f4f3b2ac63f17243bea54340 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 25 May 2020 14:14:15 -0700 Subject: [PATCH] Short-circuit appropriately if bump label says no need to make a change --- release_often/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release_often/__main__.py b/release_often/__main__.py index bdd28f4..4c1a17b 100644 --- a/release_often/__main__.py +++ b/release_often/__main__.py @@ -57,6 +57,9 @@ def update_version(pr_event): except ValueError as exc: gidgethub.actions.command("debug", str(exc)) return None + else: + if not new_version: + return None gidgethub.actions.command("debug", f"New version is {new_version}") try: new_contents = build_tool.change_version(