ci: use rules instead of only/except

only/except has got deprecated in favour of rules

maybe it fixes #370 ?

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/701>
This commit is contained in:
Jordan Petridis 2022-05-11 13:57:56 +03:00
parent d53dfcf94e
commit 4d7bd9bfcb

View file

@ -143,9 +143,8 @@ build-nightly:
update-nightly: update-nightly:
extends: build-nightly extends: build-nightly
only: rules:
variables: - if: $UPDATE_NIGHTLY == "1"
- $UPDATE_NIGHTLY == "1"
variables: variables:
FDO_FORCE_REBUILD: 1 FDO_FORCE_REBUILD: 1
@ -404,8 +403,8 @@ clippy:
deny: deny:
extends: .img-stable extends: .img-stable
stage: 'extras' stage: 'extras'
only: rules:
- schedules - if: $CI_PIPELINE_SOURCE == "schedule"
script: script:
- cargo deny --color=always check - cargo deny --color=always check
@ -420,8 +419,8 @@ gir-checks:
outdated: outdated:
extends: .img-stable extends: .img-stable
stage: 'extras' stage: 'extras'
only: rules:
- schedules - if: $CI_PIPELINE_SOURCE == "schedule"
script: script:
- cargo outdated --color=always --root-deps-only --exit-code 1 -v - cargo outdated --color=always --root-deps-only --exit-code 1 -v