fix(ci): put 'when' under 'rules' syntax

This commit is contained in:
curben 2020-04-20 11:30:48 +01:00
parent 7f3bdc0bc6
commit 54f62ab21f
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 3 additions and 5 deletions

View File

@ -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