fix(ci): put 'when' under 'rules' syntax
This commit is contained in:
parent
7f3bdc0bc6
commit
54f62ab21f
|
@ -81,11 +81,9 @@ failed_job:
|
|||
- git remote add mirror git@github.com:curbengh/urlhaus-filter.git
|
||||
- git push mirror master
|
||||
|
||||
# Run this job only when deploy_job failed
|
||||
when: on_failure
|
||||
|
||||
rules:
|
||||
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule"'
|
||||
when: always
|
||||
# Run this job only when deploy_job failed
|
||||
when: on_failure
|
||||
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "web"'
|
||||
when: always
|
||||
when: on_failure
|
||||
|
|
Loading…
Reference in New Issue