Skip to content

Commit

Permalink
Cloudbuild: Add brackets to external release regex
Browse files Browse the repository at this point in the history
  • Loading branch information
luan-n-nguyen committed Feb 10, 2025
1 parent bce7150 commit 0ea3c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmftools-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def build_and_release(raw_tag: str, github_key: str, github_client_id: str, gith
exit(1)
module = match.group(1)
version = match.group(2)
is_external_release = re.compile(r'^[0-9\.]+(-beta|-rc\.[0-9]+)*$').match(version) != None
is_external_release = re.compile(r'^[0-9\.]+(-(beta|rc)\.[0-9]+)*$').match(version) != None

# Clean the raw_tag such that it only includes the groups captured by the regex
# For example: raw_tag = orange-v1.0.0 then tag = orange-1.1.0
Expand Down

0 comments on commit 0ea3c40

Please sign in to comment.