Use the latest prerelease but count from the latest stable

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-07-12 11:08:22 +02:00 committed by jspijker
parent 5dd1798979
commit fcc1a38e3f

View File

@ -98,8 +98,9 @@ jobs:
version = tools.Version(tag)
except ConanException:
continue
if version > latest_branch_version and version.prerelease is "":
if version > latest_branch_version:
latest_branch_version = version
if version.prerelease_tag is "":
latest_branch_tag = repo.tag(tag)
# %% Get the actual version