mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:09:02 +08:00
split on /
This commit is contained in:
parent
81845ab58e
commit
dc66a4d4ff
4
.github/workflows/conan-recipe-version.yml
vendored
4
.github/workflows/conan-recipe-version.yml
vendored
@ -175,14 +175,14 @@ jobs:
|
|||||||
for branch in repo.references:
|
for branch in repo.references:
|
||||||
try:
|
try:
|
||||||
if "remotes/origin" in branch.abspath:
|
if "remotes/origin" in branch.abspath:
|
||||||
b_version = tools.Version(branch.name)
|
b_version = tools.Version(branch.name.split("/")[-1])
|
||||||
if b_version < tools.Version("10.0.0") and b_version > max_branches_version:
|
if b_version < tools.Version("10.0.0") and b_version > max_branches_version:
|
||||||
max_branches_version = b_version
|
max_branches_version = b_version
|
||||||
branches_no_commits = repo.commit().count() - branch.commit.count()
|
branches_no_commits = repo.commit().count() - branch.commit.count()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if max_branches_version > latest_branch_version:
|
if max_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"{max_branches_version.major}.{int(max_branches_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
actual_version = f"{latest_branch_version.major}.{int(latest_branch_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{int(latest_branch_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user