Make sure a tag is a release version

This commit is contained in:
jelle Spijker 2022-10-04 12:00:09 +02:00 committed by jspijker
parent e854ee6a3c
commit 3dd2d146e7

View File

@ -102,6 +102,7 @@ jobs:
is_release_branch = True
channel = "_"
user = "_"
actual_version = f"{branch_version}"
else:
try:
branch_version = tools.Version(repo.active_branch.name)
@ -173,14 +174,6 @@ jobs:
# FIXME: for external PR's
actual_version = f"5.2.0-alpha+{buildmetadata}pr_{issue_number}"
if is_tag:
print("THE TAG IS: ", "${{ github.ref_name }}")
if is_tag and "${{ github.ref_name }}" == "5.2.0-beta":
actual_version = "5.2.0-beta"
is_release_branch = True
user = "_"
channel = "_"
# %% print to output
cmd_name = ["echo", f"::set-output name=name::{project_name}"]
subprocess.call(cmd_name)