From 2ceacc32ea5b216d7e6c37e3b87c0303209fb25f Mon Sep 17 00:00:00 2001 From: Rishab Prasad Date: Thu, 2 May 2024 17:36:37 +0530 Subject: [PATCH] update cel expression --- .tekton/fms-hf-tuning-pull-request.yaml | 6 ++++-- .tekton/fms-hf-tuning-push.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.tekton/fms-hf-tuning-pull-request.yaml b/.tekton/fms-hf-tuning-pull-request.yaml index 0250171f1..fe4249f28 100644 --- a/.tekton/fms-hf-tuning-pull-request.yaml +++ b/.tekton/fms-hf-tuning-pull-request.yaml @@ -7,8 +7,10 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "main" && !"*.*".pathChanged() + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" + && target_branch == "main" + && ( !".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-pull-request.yaml".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: fms-hf-tuning diff --git a/.tekton/fms-hf-tuning-push.yaml b/.tekton/fms-hf-tuning-push.yaml index 17c38afc0..76d319352 100644 --- a/.tekton/fms-hf-tuning-push.yaml +++ b/.tekton/fms-hf-tuning-push.yaml @@ -7,8 +7,10 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "main" && !".github/*.*".pathChanged() && (!".tekton/*.*".pathChanged() || ".tekton/fms-hf-tuning-push.yaml".pathChanged()) + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" + && target_branch == "main" + && (!".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-push.yaml".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: fms-hf-tuning