Skip to content

Commit d8a912c

Browse files
committed
ci: adding rules back to check:test
1 parent 5440c59 commit d8a912c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ check:nix-dry:
7474

7575
check:test-generate:
7676
stage: check
77+
needs: []
7778
script:
7879
- mkdir -p ./tmp
7980
- >
@@ -102,6 +103,12 @@ check:test:
102103
- artifact: tmp/test-pipelines.yml
103104
job: check:test-generate
104105
strategy: depend
106+
rules:
107+
# Runs on staging commits and ignores version commits
108+
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
109+
# Manually run on commits other than master and staging and ignore version commits
110+
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH !~ /^(?:master|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
111+
when: manual
105112

106113
build:merge:
107114
stage: build

0 commit comments

Comments
 (0)