From aee2f81a8a259d5dee78899d32ed981d90d4b9af Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Fri, 26 Jul 2024 10:47:16 +0200
Subject: [PATCH] CI: trying a workflow without duplicated pipelines

---
 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c295d53b..4d0359da4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,15 +13,16 @@ include:
 # - scheduled 
 # - by a merge_request event
 # - by a commit (push)
-# DO NOT RUN the pipeline after a commit in a MR (avoid duplicated pipelines)
+# DO NOT RUN the pipeline 
+# - after a commit in a MR (avoid duplicated pipelines)
 workflow:
   rules: 
     - if: '$CI_PIPELINE_SOURCE == "web"'
     - if: '$CI_PIPELINE_SOURCE == "schedule"'
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
-    - if: '$CI_COMMIT_BRANCH'
     - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
       when: never
+    - if: '$CI_COMMIT_BRANCH'
 
 stages:
   - license
-- 
GitLab