mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Bump up minor based on latest release branch
This commit is contained in:
parent
eb12a636cc
commit
a4a3296dd2
1 changed files with 11 additions and 3 deletions
14
.github/workflows/conan-recipe-version.yml
vendored
14
.github/workflows/conan-recipe-version.yml
vendored
|
@ -170,9 +170,17 @@ jobs:
|
|||
bump_up_release_tag = int(latest_branch_version.prerelease.split('.')[1]) + 1
|
||||
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:
|
||||
bump_up_minor = int(latest_branch_version.minor) + 1
|
||||
reset_patch = 0
|
||||
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{reset_patch}-alpha+{buildmetadata}{channel_metadata}"
|
||||
branches_version = []
|
||||
for branch in repo.branches:
|
||||
try:
|
||||
branches_version.append(tools.Version(branch.name))
|
||||
except:
|
||||
pass
|
||||
latest_branches_version = max(sorted(branches_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}"
|
||||
else:
|
||||
actual_version = f"{latest_branch_version.major}.{int(latest_branch_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||
|
||||
# %% Set the environment output
|
||||
output_env = os.environ["GITHUB_OUTPUT"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue