mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
temporary fix for external PR
This commit is contained in:
parent
03c6686f7d
commit
e59aa8e22b
1 changed files with 32 additions and 28 deletions
4
.github/workflows/conan-recipe-version.yml
vendored
4
.github/workflows/conan-recipe-version.yml
vendored
|
|
@ -130,6 +130,7 @@ jobs:
|
||||||
latest_branch_version = version
|
latest_branch_version = version
|
||||||
latest_branch_tag = repo.tag(tag)
|
latest_branch_tag = repo.tag(tag)
|
||||||
|
|
||||||
|
if latest_branch_tag:
|
||||||
# %% Get the actual version
|
# %% Get the actual version
|
||||||
no_commits = 0
|
no_commits = 0
|
||||||
for commit in repo.iter_commits("HEAD"):
|
for commit in repo.iter_commits("HEAD"):
|
||||||
|
|
@ -160,6 +161,9 @@ jobs:
|
||||||
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{latest_branch_version.patch}-alpha+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{latest_branch_version.patch}-alpha+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{buildmetadata}{channel_metadata}"
|
||||||
|
else:
|
||||||
|
# FIXME: for external PR's
|
||||||
|
actual_version = f"5.2.0-alpha+{buildmetadata}pr_{issue_number}_{no_commits}"
|
||||||
|
|
||||||
# %% 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}"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue