Skip to content

Commit

Permalink
skare3 release sanity check: the reference name must be the targeted …
Browse files Browse the repository at this point in the history
…release, not the branch name
  • Loading branch information
javierggt committed Aug 10, 2022
1 parent 9c1292a commit a5b49f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions skare3_tools/scripts/skare3_release_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,16 @@ def main():

packages = ' '.join(packages)

target_tag = branch_name.replace('-branch', '')
print(f'prerelease: {release["prerelease"]}')
print(f'packages: {packages}')
print(f'overwrite_flag: --skare3-overwrite-version {target_tag}:{tag_name}')
print(f'overwrite_flag: --skare3-overwrite-version {version_info["final_version"]}:{tag_name}')
# this kind of output defines variables 'prerelease' and 'packages' within the workflow.
print(f'::set-output name=prerelease::{release["prerelease"]}')
print(f'::set-output name=packages::{packages}')
print(f'::set-output name=overwrite_flag::--skare3-overwrite-version {branch_name}:{tag_name}')
print(
'::set-output name=overwrite_flag::'
f'--skare3-overwrite-version {version_info["final_version"]}:{tag_name}'
)


if __name__ == '__main__':
Expand Down

0 comments on commit a5b49f3

Please sign in to comment.