diff --git a/.tekton/control-plane-operator-main-pull-request.yaml b/.tekton/control-plane-operator-main-pull-request.yaml index 40457e4e8b..6a2a992c4c 100644 --- a/.tekton/control-plane-operator-main-pull-request.yaml +++ b/.tekton/control-plane-operator-main-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" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" + && target_branch == "main" + && ( "control-plane-operator/***".pathChanged() || "support/***".pathChanged() || "/Containerfile.control-plane-operator".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: control-plane-operator diff --git a/.tekton/control-plane-operator-main-push.yaml b/.tekton/control-plane-operator-main-push.yaml index a7285c7a18..b36e6a35c9 100644 --- a/.tekton/control-plane-operator-main-push.yaml +++ b/.tekton/control-plane-operator-main-push.yaml @@ -6,8 +6,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" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" + && target_branch == "main" + && ( "control-plane-operator/***".pathChanged() || "support/***".pathChanged() || "/Containerfile.control-plane-operator".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: control-plane-operator