Fix dist suffixes

This commit is contained in:
Willy-JL
2024-03-10 13:08:14 +00:00
parent ed08b194e5
commit ef557bc1c6
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ if __name__ == "__main__":
desc = desc.rsplit("\n", 1)[0] + f"\n+ {count - i} more commits"
break
url = event["compare"]
color = 16723712 if event["forced"] else 3669797
color = 16723712 if event["forced"] else 11761899
case "release":
webhook = "RELEASE_WEBHOOK"
+1 -2
View File
@@ -60,10 +60,9 @@ def get_details(event, args):
data["commit_sha"] = data["commit_hash"][:8]
data["branch_name"] = re.sub("refs/\w+/", "", ref)
data["suffix"] = (
"mntm-" +
data["branch_name"].replace("/", "_")
+ "-"
+ current_time.strftime("%d%m%Y")
+ "-"
+ data["commit_sha"]
)
if ref.startswith("refs/tags/"):
+4 -4
View File
@@ -55,10 +55,10 @@ coreenv = VAR_ENV.Clone(
)
# If DIST_SUFFIX is set in environment, is has precedence (set by CI)
# if os_suffix := os.environ.get("DIST_SUFFIX", None):
# coreenv.Replace(
# DIST_SUFFIX=os_suffix,
# )
if os_suffix := os.environ.get("DIST_SUFFIX", None):
coreenv.Replace(
DIST_SUFFIX=os_suffix,
)
# Default value for commandline options