Browse Source

Use the latest prerelease but count from the latest stable

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
90336ce08e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .github/workflows/conan-recipe-version.yml

+ 2 - 1
.github/workflows/conan-recipe-version.yml

@@ -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