mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Check against refs
This commit is contained in:
parent
be057d495d
commit
cc3664fa6a
1 changed files with 5 additions and 4 deletions
9
.github/workflows/conan-recipe-version.yml
vendored
9
.github/workflows/conan-recipe-version.yml
vendored
|
@ -171,11 +171,12 @@ jobs:
|
|||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
||||
else:
|
||||
branches_version = []
|
||||
for branch in repo.branches:
|
||||
for branch in repo.references:
|
||||
try:
|
||||
b_version = tools.Version(branch.name)
|
||||
if b_version < tools.Version("10.0.0"):
|
||||
branches_version.append(b_version)
|
||||
if "heads" in branch.abspath:
|
||||
b_version = tools.Version(branch.name)
|
||||
if b_version < tools.Version("10.0.0"):
|
||||
branches_version.append(b_version)
|
||||
except:
|
||||
pass
|
||||
latest_branches_version = max(sorted(branches_version))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue