Skip to content

Commit

Permalink
fix: convert feature branches only list to rules statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Aug 12, 2024
1 parent 3a13cc4 commit 159e714
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ stages:
.feature-branches:
variables:
FEATURE_STOP_DOWNSTREAM_BRANCH: main
only:
- /^release-(.*)/
- /^feature-.*$/
- main
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^release-.*$/'
when: always
- if: '$CI_COMMIT_REF_NAME =~ /^feature-.*$/'
when: always
- if: '$CI_COMMIT_REF_NAME == "main"'
when: always

#-----------------------------------------------------------------------------------------------------------------------
# SCHEDULE
Expand Down

0 comments on commit 159e714

Please sign in to comment.