Skip to content

Commit

Permalink
print derived version
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Nov 21, 2024
1 parent 4d9684e commit 038cf43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/version-cmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
def set_outputs(version: Version | str) -> None:
is_prerelease = version.is_prerelease if isinstance(version, Version) else False
is_prerelease_json = "true" if is_prerelease else "false"
print(f"{version=!s} {is_prerelease=}")
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as f:
print(f"version={version}", file=f)
print(f"is_prerelease={is_prerelease_json}", file=f)
Expand Down

0 comments on commit 038cf43

Please sign in to comment.