From 4d7bd9bfcb6336a7d61fe25c69da721b1142d94b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 11 May 2022 13:57:56 +0300 Subject: [PATCH] ci: use rules instead of only/except only/except has got deprecated in favour of rules maybe it fixes #370 ? Part-of: --- .gitlab-ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29d31f42c..4d424d5d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -143,9 +143,8 @@ build-nightly: update-nightly: extends: build-nightly - only: - variables: - - $UPDATE_NIGHTLY == "1" + rules: + - if: $UPDATE_NIGHTLY == "1" variables: FDO_FORCE_REBUILD: 1 @@ -404,8 +403,8 @@ clippy: deny: extends: .img-stable stage: 'extras' - only: - - schedules + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" script: - cargo deny --color=always check @@ -420,8 +419,8 @@ gir-checks: outdated: extends: .img-stable stage: 'extras' - only: - - schedules + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" script: - cargo outdated --color=always --root-deps-only --exit-code 1 -v