From 437edbcce9bfb24a68ff50e26ada1bf434e1ac68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Mon, 31 Mar 2025 17:29:16 +0200 Subject: [PATCH] ci: simplify rules for running pipelines We were formerly running pipelines on branches when we directly pushed or cherry-picked commits. That is no longer the case, and this is just leftover from that. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6471 --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ba82fe93..3983c12bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,9 +21,6 @@ variables: # This defines the rules for when a pipeline should run. workflow: rules: - # Don't run branch pipeline if an MR is open (only the MR pipeline will run) - - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" - when: never # Run for merge requests - if: $CI_PIPELINE_SOURCE == "merge_request_event" # Run scheduled pipeline for autoupdate or manually triggered pipeline @@ -37,7 +34,7 @@ include: "**/.gitlab-ci.yml" wiki: stage: lint rules: - - if: &mr_rule $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_REF_PROTECTED == "false" + - if: &mr_rule $CI_PIPELINE_SOURCE == "merge_request_event" changes: - .ci/**/* - .ci/build-jobs.yaml.j2