mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-12 19:51:03 +00:00
Make nigthly version semver compliant (#360)
cc https://github.com/paritytech/revive/pull/357
This commit is contained in:
committed by
GitHub
parent
7c932f719b
commit
141a8b752c
@@ -76,7 +76,7 @@ def extract_build_hash():
|
|||||||
def generate_asset_json_nightly(name, url, checksum):
|
def generate_asset_json_nightly(name, url, checksum):
|
||||||
"""Generate JSON for a specific asset."""
|
"""Generate JSON for a specific asset."""
|
||||||
# Date in format YYYY-MM-DD
|
# 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','')
|
last_version = os.environ.get("TAG").replace('v','')
|
||||||
version = f"{last_version}-nightly.{date}"
|
version = f"{last_version}-nightly.{date}"
|
||||||
SHA = os.environ.get("GITHUB_SHA", "")[:8]
|
SHA = os.environ.get("GITHUB_SHA", "")[:8]
|
||||||
|
|||||||
Reference in New Issue
Block a user