mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Default the prerelease number to 1 when it is not set in the github tags.
CURA-9272
This commit is contained in:
parent
a20e7bf8d9
commit
5900cac9c8
1 changed files with 3 additions and 0 deletions
3
.github/workflows/conan-recipe-version.yml
vendored
3
.github/workflows/conan-recipe-version.yml
vendored
|
@ -135,6 +135,9 @@ jobs:
|
|||
user = "_"
|
||||
channel = "_"
|
||||
else:
|
||||
if not latest_branch_version.prerelease.contains("."):
|
||||
# The prerealese did not contain a version number, default it to 1
|
||||
latest_branch_version.prerelease.append(".1")
|
||||
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()}+{buildmetadata}pr_{issue_number}_{no_commits}"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue