Skip to content

Commit 8d9b4f4

Browse files
committed
updated gitlab tag pattern condition
1 parent 7d3f7ae commit 8d9b4f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hermes/commands/init/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def set_push_trigger_to_tag(self, tag_pattern: str = "") -> None:
902902
self.ci_parameters["gl_create_curate_branch"] = 'git checkout -b "$MR_TARGET_BRANCH" "$CI_COMMIT_REF_NAME"'
903903
if tag_pattern:
904904
self.ci_parameters["gh_push_target"] = f"\"{tag_pattern}\""
905-
self.ci_parameters["gl_push_condition"] = f"$CI_COMMIT_TAG =~ {tag_pattern}"
905+
self.ci_parameters["gl_push_condition"] = f"$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /{tag_pattern}/"
906906
bold_pattern = sc.Formats.BOLD.wrap_around(tag_pattern)
907907
sc.echo(f"The HERMES pipeline will be activated when you push a tag that fits '{bold_pattern}'.",
908908
formatting=sc.Formats.OKGREEN)

0 commit comments

Comments
 (0)