From d7c26611faafc6221478f5ded8c9bb0b3435d8af Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Mon, 12 Feb 2024 19:20:49 +0800 Subject: [PATCH] ci: fix pylint doesn't run in MR pipelines --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b99e1108..f59b6c8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -255,6 +255,10 @@ code_quality_html: pylint: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" # Run code quality job in merge request pipelines + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run code quality job in pipelines on the default branch (but not in other branch pipelines) + - if: $CI_COMMIT_TAG # Run code quality job in pipelines for tags image: debian:bookworm-slim script: - apt-get update