From af9db10a1f811129c5db2709432c366f09f87bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ezequiel=20P=C3=A1ssaro?= Date: Thu, 16 Mar 2023 19:28:10 -0300 Subject: [PATCH] Fix for release dates --- .ci-helpers/get_next_version.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci-helpers/get_next_version.py b/.ci-helpers/get_next_version.py index 497ac2107ce..0be3077414e 100644 --- a/.ci-helpers/get_next_version.py +++ b/.ci-helpers/get_next_version.py @@ -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)