mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:19:15 +08:00
Make sure a tag is a release version
This commit is contained in:
parent
e854ee6a3c
commit
3dd2d146e7
9
.github/workflows/conan-recipe-version.yml
vendored
9
.github/workflows/conan-recipe-version.yml
vendored
@ -102,6 +102,7 @@ jobs:
|
|||||||
is_release_branch = True
|
is_release_branch = True
|
||||||
channel = "_"
|
channel = "_"
|
||||||
user = "_"
|
user = "_"
|
||||||
|
actual_version = f"{branch_version}"
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
branch_version = tools.Version(repo.active_branch.name)
|
branch_version = tools.Version(repo.active_branch.name)
|
||||||
@ -173,14 +174,6 @@ jobs:
|
|||||||
# FIXME: for external PR's
|
# FIXME: for external PR's
|
||||||
actual_version = f"5.2.0-alpha+{buildmetadata}pr_{issue_number}"
|
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
|
# %% print to output
|
||||||
cmd_name = ["echo", f"::set-output name=name::{project_name}"]
|
cmd_name = ["echo", f"::set-output name=name::{project_name}"]
|
||||||
subprocess.call(cmd_name)
|
subprocess.call(cmd_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user