From 3c8ce49ff70a0602b1422a425f121b132ca0954d Mon Sep 17 00:00:00 2001
From: Rafal Mucha <rafal.mucha@cern.ch>
Date: Thu, 29 Aug 2024 16:08:19 +0200
Subject: [PATCH] NXCALS-7429 Fix triggering examples

---
 .ci/examples.yml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/.ci/examples.yml b/.ci/examples.yml
index 20dcb8a593..5941d4b0fd 100644
--- a/.ci/examples.yml
+++ b/.ci/examples.yml
@@ -9,17 +9,16 @@ include:
 run-examples:
   stage: publish-release
   rules:
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
     - if: $STAGING_PIPELINE == "true" && $PRO_RELEASE == 'true' && $CAS == 'true' #on_pro_release
-  needs:
-    - set_version:pro
-    - cas_set_alias:pro
+#  needs:
+#    - set_version:pro
+#    - cas_set_alias:pro
   variables:
-    NXCALS_VERSION: "$VERSION"
+    NXCALS_VERSION: 1.5.20
   trigger:
-    include:
-      - project: "acc-logging-team/nxcals-examples"
-        file: .gitlab-ci.yml
-        ref: "HEAD"
+    project: acc-logging-team/nxcals-examples
+    branch: master
     strategy: depend
     forward:
       pipeline_variables: true
\ No newline at end of file
-- 
GitLab