From e9b9bf21c6b093dddb87a473bcc29b6ed1b2fcf4 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Sat, 21 Dec 2024 16:21:49 +0100
Subject: [PATCH] #239: feat: release du runtime from `runtime/*` branches

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 03aa38f7e..6eef43e79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,8 +26,8 @@ workflow:
 .is_network_branch: &is_network_branch
   if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH =~ /^(network\/).+/
 
-.is_master_branch: &is_master_branch
-  if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH =~ /^master$/
+.is_master_branch: &is_runtime_branch
+  if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH =~ /^(runtime\/).+/
 
 sanity_tests:
   extends: .env
@@ -241,7 +241,7 @@ tests:
 trigger_runtime_release:
   stage: build
   rules:
-    - <<: *is_master_branch
+    - <<: *is_runtime_branch
       when: manual
   variables:
     RUNTIME: gdev
@@ -327,7 +327,7 @@ build_gdev_runtime:
   stage: build
   needs: ["trigger_runtime_release"]
   rules:
-    - <<: *is_master_branch
+    - <<: *is_runtime_branch
   image: paritytech/srtool:1.77.0-0.15.0
   variables:
     RUNTIME: gdev
@@ -504,7 +504,7 @@ create_runtime_release:
   stage: release
   needs: ["build_gdev_runtime"]
   rules:
-    - <<: *is_master_branch
+    - <<: *is_runtime_branch
   image: rust:1-bullseye
   variables:
     RUNTIME: gdev
-- 
GitLab