mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
split on /
This commit is contained in:
parent
81845ab58e
commit
dc66a4d4ff
1 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue