Make nigthly version semver compliant (#360)

cc https://github.com/paritytech/revive/pull/357
This commit is contained in:
Alexander Samusev
2025-07-08 17:17:05 +02:00
committed by GitHub
parent 7c932f719b
commit 141a8b752c
+1 -1
View File
@@ -76,7 +76,7 @@ def extract_build_hash():
def generate_asset_json_nightly(name, url, checksum):
"""Generate JSON for a specific asset."""
# Date in format YYYY-MM-DD
date = datetime.now().strftime("%Y.%m.%d")
date = datetime.now().strftime("%Y.%-m.%-d")
last_version = os.environ.get("TAG").replace('v','')
version = f"{last_version}-nightly.{date}"
SHA = os.environ.get("GITHUB_SHA", "")[:8]