ci: replace only clause with rules

only/except is deprecated and going to be removed
from future versions of gitlab.
This commit is contained in:
Jordan Petridis 2020-04-30 19:11:25 +03:00
parent 4cba9d1e53
commit 3d2792a1c3
No known key found for this signature in database
GPG key ID: E8523968931763BE

View file

@ -164,8 +164,8 @@ clippy:
deny:
extends: .img-stable
stage: 'extras'
only:
- schedules
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
script:
- cargo deny check
@ -173,7 +173,7 @@ outdated:
extends: .img-stable
allow_failure: true
stage: 'extras'
only:
- schedules
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
script:
- cargo outdated --root-deps-only --exit-code 1 -v