diff --git a/.tekton/exhort-pull-request.yaml b/.tekton/exhort-pull-request.yaml index 59041afe..050869a0 100644 --- a/.tekton/exhort-pull-request.yaml +++ b/.tekton/exhort-pull-request.yaml @@ -8,7 +8,8 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-event: '[pull_request]' - pipelinesascode.tekton.dev/on-target-branch: '[stable]' + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "stable" && !("dashboard/*".pathChanged() || "deploy/*".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: exhort-alpha diff --git a/.tekton/exhort-push.yaml b/.tekton/exhort-push.yaml index 267fde96..90ffc775 100644 --- a/.tekton/exhort-push.yaml +++ b/.tekton/exhort-push.yaml @@ -7,7 +7,8 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-event: '[push]' - pipelinesascode.tekton.dev/on-target-branch: '[stable]' + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" && target_branch == "stable" && !("dashboard/*".pathChanged() || "deploy/*".pathChanged()) creationTimestamp: null labels: appstudio.openshift.io/application: exhort-alpha