mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
Fix dist suffixes
This commit is contained in:
@@ -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
@@ -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/"):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user