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"'
# when: never
- if: # condition_any_branch_push
$CI_COMMIT_BRANCH != null &&
$CI_COMMIT_TAG == null &&
- if: # condition_not_master_or_dev_push
$CI_COMMIT_BRANCH != "master" &&
$CI_COMMIT_BRANCH != "development" &&
$CI_PIPELINE_SOURCE == "push"
exists:
- .cz.yaml

View File

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