Adding rules to prevent running CI for nothing
This commit is contained in:
parent
e56210439b
commit
67b9406818
1 changed files with 18 additions and 0 deletions
|
|
@ -18,6 +18,15 @@ check_readme_changes:
|
|||
artifacts:
|
||||
paths:
|
||||
- README.md
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: always
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: always
|
||||
- changes:
|
||||
paths:
|
||||
- README.qmd
|
||||
when: always
|
||||
|
||||
commit_and_push:
|
||||
stage: commit
|
||||
|
|
@ -39,3 +48,12 @@ commit_and_push:
|
|||
- branches
|
||||
dependencies:
|
||||
- check_readme_changes
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: always
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: always
|
||||
- changes:
|
||||
paths:
|
||||
- README.qmd
|
||||
when: always
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue