Merge branch 'preperation-32-when-anchors' into 'development'

fix(commit_footer_check): run on non master/dev branches only

See merge request nofusscomputing/projects/gitlab-ci!42
This commit is contained in:
2023-06-02 06:29:02 +00:00
2 changed files with 8 additions and 19 deletions

View File

@ -109,9 +109,9 @@ commit footer refs:
# - if: '$CI_COMMIT_BRANCH == "development" || $CI_COMMIT_BRANCH == "master"' # - if: '$CI_COMMIT_BRANCH == "development" || $CI_COMMIT_BRANCH == "master"'
# when: never # when: never
- if: # condition_any_branch_push - if: # condition_not_master_or_dev_push
$CI_COMMIT_BRANCH != null && $CI_COMMIT_BRANCH != "master" &&
$CI_COMMIT_TAG == null && $CI_COMMIT_BRANCH != "development" &&
$CI_PIPELINE_SOURCE == "push" $CI_PIPELINE_SOURCE == "push"
exists: exists:
- .cz.yaml - .cz.yaml

View File

@ -68,22 +68,17 @@
$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_BRANCH == "master" &&
$CI_PIPELINE_SOURCE == "push" $CI_PIPELINE_SOURCE == "push"
exists: exists:
#- '{!gitlab-ci/**, !website-template/**, **}/*gitlab-ci*' - '{*, **/**, **}/*gitlab-ci*'
- '{*, **/}*gitlab-ci*'
# - ".gitlab-ci*"
# - "**/*gitlab-ci*"
when: always when: always
- if: # condition_dev_branch_push - if: # condition_dev_branch_push
$CI_COMMIT_BRANCH == "development" && $CI_COMMIT_BRANCH == "development" &&
$CI_PIPELINE_SOURCE == "push" $CI_PIPELINE_SOURCE == "push"
exists: exists:
#- '{!gitlab-ci/**, !website-template/**, **}/*gitlab-ci*' - '{*, **/**, **}/*gitlab-ci*'
- '{*, **/}*gitlab-ci*'
changes: changes:
paths: paths:
#- '{!gitlab-ci/**, !website-template/**, **}/*gitlab-ci*' - '{*, **/**, **}/*gitlab-ci*'
- '{*, **/}*gitlab-ci*'
compare_to: 'master' compare_to: 'master'
when: always when: always
@ -92,16 +87,10 @@
$CI_COMMIT_BRANCH != "development" && $CI_COMMIT_BRANCH != "development" &&
$CI_PIPELINE_SOURCE == "push" $CI_PIPELINE_SOURCE == "push"
exists: exists:
#- '{!gitlab-ci/**, !website-template/**, **}/*gitlab-ci*yml' - '{*, **/**, **}/*gitlab-ci*'
#- '{*, a}/*gitlab-ci*yml' # worked
#- '{!website-template/**, *, **, **/**}gitlab-ci*'
#- '{*, **, **/**, !website-template/**}/*gitlab-c*' worked
- '{*, **/}*gitlab-ci*'
changes: changes:
paths: paths:
- '{*, **/}*gitlab-ci*' - '{*, **/**, **}/*gitlab-ci*'
# - ".gitlab-ci*"
# - "**/*gitlab-ci*"
compare_to: 'development' compare_to: 'development'
when: always when: always