[PATCH] ci: Do not prefix triggers from stable branches

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
From: Jan Kiszka <[email protected]>

The branch names already carry the version, plus xenomai-images does not
expect a prefix. Will become relevant after creating a stable/v3.4.x
branch from this codebase.

Signed-off-by: Jan Kiszka <[email protected]>
---
 .gitlab-ci.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b82df7e436..1188222d7c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -268,11 +268,15 @@ i386-userland-y2038-unavailable:
 
 trigger-xenomai-images:
   stage: test
-  variables:
-    ONLY_RUN: xenomai-3/${CI_COMMIT_BRANCH}
-    TRIGGER_SOURCE: xenomai-3/${CI_COMMIT_BRANCH}
   trigger:
     project: xenomai/xenomai-images
     branch: next
   rules:
-    - if: '$CI_COMMIT_BRANCH == "next" || $CI_COMMIT_BRANCH =~ /stable\/.*/'
+    - if: '$CI_COMMIT_BRANCH == "next"'
+      variables:
+        ONLY_RUN: xenomai-3/${CI_COMMIT_BRANCH}
+        TRIGGER_SOURCE: xenomai-3/${CI_COMMIT_BRANCH}
+    - if: '$CI_COMMIT_BRANCH =~ /stable\/.*/'
+      variables:
+        ONLY_RUN: ${CI_COMMIT_BRANCH}
+        TRIGGER_SOURCE: ${CI_COMMIT_BRANCH}
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.