Skip to content

Commit 569dc27

Browse files
committed
Merge branch 'ci-jobs-tag-filtering' into 'master'
fix: consider the leading letter `v` while comparing Git tags to run CI jobs See merge request postgres-ai/database-lab!382
2 parents 4d6e496 + fe828e4 commit 569dc27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ lint:
2525
.only_var_template: &only_tag_release
2626
only:
2727
variables:
28-
- $CI_COMMIT_TAG =~ /^[0-9.]+$/
28+
- $CI_COMMIT_TAG =~ /^v[0-9.]+$/
2929

3030
.only_var_template: &only_tag_rc
3131
only:
3232
variables:
33-
- $CI_COMMIT_TAG =~ /^[0-9.]+[\-_]*[a-zA-Z]+[a-zA-Z0-9.\-_]*[a-zA-Z0-9]+$/
33+
- $CI_COMMIT_TAG =~ /^v[0-9.]+[\-_]*[a-zA-Z]+[a-zA-Z0-9.\-_]*[a-zA-Z0-9]+$/
3434

3535
.only_var_template: &only_master
3636
only:

0 commit comments

Comments
 (0)