[neon/ubuntu-core/models.add-models-pipeline] debian: Models CI: Update trigger rules

Antoine Gonzalez null at kde.org
Wed Aug 7 10:01:04 BST 2024


Git commit e5e105a7101b6662b32e81a569560bf6ad5fd7ae by Antoine Gonzalez.
Committed on 07/08/2024 at 09:00.
Pushed by daspood into branch 'models.add-models-pipeline'.

Models CI: Update trigger rules

M  +4    -6    debian/snap-image-model.yml

https://invent.kde.org/neon/ubuntu-core/-/commit/e5e105a7101b6662b32e81a569560bf6ad5fd7ae

diff --git a/debian/snap-image-model.yml b/debian/snap-image-model.yml
index b51a41f..eebc4fc 100644
--- a/debian/snap-image-model.yml
+++ b/debian/snap-image-model.yml
@@ -5,8 +5,6 @@ include:
       - /gitlab-templates/blocks/workflow.yml
 
 snap_image_model:
-  when: manual
-  manual_confirmation: 'Are you sure you want to generate and push models for branch $CI_COMMIT_REF_NAME?'
   extends: .snap_base
   inherit:
     default: true
@@ -50,9 +48,9 @@ snap_image_model:
     - rm -rf ¬/.snap/gnupg
     # delete the snapcraft auth creds
     - rm kde-neon-core-image-key
-  rules:  # Only on manual triggers and on a non-master branch
-    - if: $CI_PIPELINE_SOURCE != "web"
-      when: never
-    - if: $CI_COMMIT_BRANCH == "master"
+  rules:  # Only allow manual trigger on `models.*` branches
+    - if: '$CI_COMMIT_BRANCH =~ /models\..*/'
+      when: manual
+    - if: '$CI_COMMIT_BRANCH !~ /models\..*/'
       when: never
 


More information about the Neon-commits mailing list