Check against refs

This commit is contained in:
jspijker 2023-02-01 10:18:54 +01:00
parent be057d495d
commit cc3664fa6a

View File

@ -171,8 +171,9 @@ jobs:
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:
branches_version = []
for branch in repo.branches:
for branch in repo.references:
try:
if "heads" in branch.abspath:
b_version = tools.Version(branch.name)
if b_version < tools.Version("10.0.0"):
branches_version.append(b_version)