Skip to content

Commit

Permalink
fix(ci): use python to determine if it's a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Jul 25, 2024
1 parent 588fca1 commit dd57ccc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/pipeline/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
REASON = os.environ["REASON"]
# use variable corresponding to tag triggers
SOURCE = os.environ["INDIVIDUAL_SOURCE"]
IS_TAG = os.environ["IS_TAG"].lower() == "true"

SOURCE_BRANCH = os.environ["SOURCE_BRANCH"]
IS_TAG = SOURCE_BRANCH.startswith("refs/tags/") is True

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

0 comments on commit dd57ccc

Please sign in to comment.