From a599bede1e2012198a2353ca3bb152bdc3254223 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 14 Dec 2022 16:48:29 +0100 Subject: [PATCH] ci: reduce ci usage by changing workflow rules Part-of: --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e845d4080..4ba1aa197 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,10 +17,12 @@ default: workflow: rules: + # Run for any event on the default branches in the funkwhale namespace + - if: > + $CI_PROJECT_NAMESPACE == "funkwhale" && + $CI_COMMIT_BRANCH =~ /(stable|develop)/ + # Run for merge requests from any repo or branches - if: $CI_PIPELINE_SOURCE == "merge_request_event" - - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS - when: never - - if: $CI_COMMIT_BRANCH stages: - review