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