temporary fix for external PR

This commit is contained in:
jellespijker 2022-09-01 12:13:31 +02:00 committed by Jelle Spijker
parent 03c6686f7d
commit e59aa8e22b

View File

@ -130,6 +130,7 @@ jobs:
latest_branch_version = version
latest_branch_tag = repo.tag(tag)
if latest_branch_tag:
# %% Get the actual version
no_commits = 0
for commit in repo.iter_commits("HEAD"):
@ -160,6 +161,9 @@ jobs:
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{latest_branch_version.patch}-alpha+{buildmetadata}{channel_metadata}"
else:
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{buildmetadata}{channel_metadata}"
else:
# FIXME: for external PR's
actual_version = f"5.2.0-alpha+{buildmetadata}pr_{issue_number}_{no_commits}"
# %% print to output
cmd_name = ["echo", f"::set-output name=name::{project_name}"]