From bc9f1b6a1dc9912ad89a18a3e9330ff79195a6dd Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Tue, 11 Jan 2022 00:24:22 +0100 Subject: [PATCH] ci: auto exec job fmt_and_clippy for MRs only --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34c730b83..41c38b8bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,8 +23,8 @@ fmt_and_clippy: rules: - if: $CI_COMMIT_TAG when: never - - if: $CI_MERGE_REQUEST_ID - - when: on_success + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - when: manual stage: quality script: - cargo fmt -- --version -- GitLab