Skip to content

Commit dd57ccc

Browse files
committed
fix(ci): use python to determine if it's a tag
1 parent 588fca1 commit dd57ccc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

terraform/pipeline/tag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
REASON = os.environ["REASON"]
55
# use variable corresponding to tag triggers
66
SOURCE = os.environ["INDIVIDUAL_SOURCE"]
7-
IS_TAG = os.environ["IS_TAG"].lower() == "true"
7+
8+
SOURCE_BRANCH = os.environ["SOURCE_BRANCH"]
9+
IS_TAG = SOURCE_BRANCH.startswith("refs/tags/") is True
810

911
if REASON == "IndividualCI" and IS_TAG:
1012
if re.fullmatch(r"20\d\d.\d\d.\d+-rc\d+", SOURCE):

0 commit comments

Comments
 (0)