From e4358b8e5b303c96bac4903c8706508a211d4c42 Mon Sep 17 00:00:00 2001
From: Emanuele Aina <emanuele.aina@collabora.com>
Date: Sun, 3 Oct 2021 21:28:46 +0200
Subject: [PATCH] Run the local pipeline whenever the parent pipeline triggers
 it

By default pipelines do not run in Merge Request context, but that's
exactly what the parent ci-package-builder pipeline is now doing.

Add a rule to run the local pipeline in whatever context the parent
pipeline triggered it.

Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
---
 debian/apertis/local-gitlab-ci.yml | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/debian/apertis/local-gitlab-ci.yml b/debian/apertis/local-gitlab-ci.yml
index 9327fb2..7dd3c93 100644
--- a/debian/apertis/local-gitlab-ci.yml
+++ b/debian/apertis/local-gitlab-ci.yml
@@ -11,8 +11,4 @@ test:
       job: prepare-build-env
       artifacts: true
   rules:
-    - if: $CI_MERGE_REQUEST_ID
-      when: never
-    - if: $CI_COMMIT_BRANCH
-      when: on_success
-    - when: never
+    - when: on_success # run whenever the parent pipeline triggers this
-- 
GitLab