mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Use remotes/origin
This commit is contained in:
parent
c3a75fd3d3
commit
e7d7a23be8
1 changed files with 2 additions and 6 deletions
6
.github/workflows/conan-recipe-version.yml
vendored
6
.github/workflows/conan-recipe-version.yml
vendored
|
|
@ -173,17 +173,13 @@ jobs:
|
||||||
branches_version = []
|
branches_version = []
|
||||||
for branch in repo.references:
|
for branch in repo.references:
|
||||||
try:
|
try:
|
||||||
print(branch.abspath)
|
if "remotes/origin" in branch.abspath:
|
||||||
if "heads" in branch.abspath:
|
|
||||||
b_version = tools.Version(branch.name)
|
b_version = tools.Version(branch.name)
|
||||||
if b_version < tools.Version("10.0.0"):
|
if b_version < tools.Version("10.0.0"):
|
||||||
branches_version.append(b_version)
|
branches_version.append(b_version)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if len(branches_version) > 0:
|
|
||||||
latest_branches_version = max(sorted(branches_version))
|
latest_branches_version = max(sorted(branches_version))
|
||||||
else:
|
|
||||||
latest_branches_version = tools.Version("5.3") # FIXME: Do not hardcode
|
|
||||||
if latest_branches_version > latest_branch_version:
|
if latest_branches_version > latest_branch_version:
|
||||||
actual_version = f"{latest_branches_version.major}.{int(latest_branches_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branches_version.major}.{int(latest_branches_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue