From 07d6a4936d5ff931b0430405196d569d332f8387 Mon Sep 17 00:00:00 2001 From: Ethan Knapp Date: Wed, 14 Feb 2024 21:27:03 -0700 Subject: [PATCH] update tags to always push tag edge/branch --- script/generate_tags.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/script/generate_tags.py b/script/generate_tags.py index d827318..11c967a 100755 --- a/script/generate_tags.py +++ b/script/generate_tags.py @@ -60,16 +60,18 @@ def set_version(v): if os.environ.get("GITHUB_EVENT_NAME", None) == "release": set_version(os.environ.get("GITHUB_REF").replace("refs/tags/", "")) - elif branch == "master" and args.package_version_changed == "true": - set_version(args.package_version) else: - sha = os.environ.get("GITHUB_SHA", "") - datecode = datetime.datetime.now().isoformat() - version = f"{branch}-{sha}-{datecode}" + if branch == "master" and args.package_version_changed == "true": + set_version(args.package_version) + else: + sha = os.environ.get("GITHUB_SHA", "") + datecode = datetime.datetime.now().isoformat() + version = f"{branch}-{sha}-{datecode}" + if branch == "master": tags_to_push.append("edge") - else: - tags_to_push.append(f"branch-{branch}") + + tags_to_push.append(f"branch-{branch}") if channel == CHANNEL_BETA: tags_to_push.append("beta")