Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
It isn't an error if no label was specified
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed May 22, 2020
1 parent aabdee2 commit 3f8aef1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release_often/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def update_version(pr_event):
file_contents = version_file.read_text(encoding="utf-8")
current_version = build_tool.read_version(file_contents)
gidgethub.actions.command("debug", f"Current/old version is {current_version}")
new_version = version.bump_by_label(pr_event, current_version)
try:
new_version = version.bump_by_label(pr_event, current_version)
except ValueError as exc:
gidgethub.actions.command("debug", str(ValueError))
return None
gidgethub.actions.command("debug", f"New version is {new_version}")
try:
new_contents = build_tool.change_version(
Expand Down

0 comments on commit 3f8aef1

Please sign in to comment.