Skip to content

Commit

Permalink
Fix for release dates (tardis-sn#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro authored and smokestacklightnin committed Mar 21, 2023
1 parent fd33662 commit 59a1719
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .ci-helpers/get_next_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
iso_date = date(*release).isoformat()
iso_date = iso_date.replace("-",".")

version = f"{iso_date}.{str(build)}"
version = version.rstrip(".0") if version.endswith(".0") else version
if build > 0:
version = f"{iso_date}.{str(build)}"

else:
version = iso_date

print(version)

Expand Down

0 comments on commit 59a1719

Please sign in to comment.