diff --git a/.tekton/opc-pull-request.yaml b/.tekton/opc-pull-request.yaml index 472e2117..79bdad2f 100644 --- a/.tekton/opc-pull-request.yaml +++ b/.tekton/opc-pull-request.yaml @@ -8,7 +8,10 @@ metadata: 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" + == "main" && + ("opc/***".pathChanged() || + ".tekton/opc-pull-request.yaml".pathChanged() || + ".tekton/opc-push.yaml".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: ecosystem-images diff --git a/.tekton/opc-push.yaml b/.tekton/opc-push.yaml index 6f636d4a..941ce5db 100644 --- a/.tekton/opc-push.yaml +++ b/.tekton/opc-push.yaml @@ -7,7 +7,10 @@ metadata: 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" + == "main" && + ("opc/***".pathChanged() || + ".tekton/opc-pull-request.yaml".pathChanged() || + ".tekton/opc-push.yaml".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: ecosystem-images