From 3d2792a1c385ec0bc95d1f5b995678457a73ffe6 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 30 Apr 2020 19:11:25 +0300 Subject: [PATCH] ci: replace only clause with rules only/except is deprecated and going to be removed from future versions of gitlab. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe5e7684..a4ae0dc1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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