mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-24 02:14:25 +08:00
Add channel to build metadata on non-release branches
Contributes to CURA-9365
This commit is contained in:
parent
fb4f93f096
commit
bb69e4877a
10
.github/workflows/conan-recipe-version.yml
vendored
10
.github/workflows/conan-recipe-version.yml
vendored
@ -130,10 +130,14 @@ jobs:
|
||||
if event_name == "pull_request":
|
||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+pr_{issue_number}_{no_commits}"
|
||||
else:
|
||||
if latest_branch_version.prerelease == "":
|
||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-alpha+{no_commits}"
|
||||
if channel != "stable" or channel != "_" or channel != "":
|
||||
channel_metadata = f"{channel}_{no_commits}"
|
||||
else:
|
||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{no_commits}"
|
||||
channel_metadata = f"{no_commits}"
|
||||
if latest_branch_version.prerelease == "":
|
||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-alpha+{channel_metadata}"
|
||||
else:
|
||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{channel_metadata}"
|
||||
|
||||
# %% print to output
|
||||
cmd_name = ["echo", f"::set-output name=name::{project_name}"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user