Skip to content

Commit fe828e4

Browse files
committed
fix: consider the leading letter v while comparing Git tags to run CI jobs
1 parent 4d6e496 commit fe828e4

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)