From de15fad398515be051386a238218c81d4e060bf6 Mon Sep 17 00:00:00 2001 From: Liora Milbaum Date: Thu, 18 Jan 2024 12:46:56 +0200 Subject: [PATCH] Don't trigger the pull request pipeline if docs files were changed --- .tekton/centos-bootc-pull-request.yaml | 2 +- .tekton/centos-bootc-push.yaml | 2 +- .tekton/fedora-bootc-pull-request.yaml | 2 +- .tekton/fedora-bootc-push.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.tekton/centos-bootc-pull-request.yaml b/.tekton/centos-bootc-pull-request.yaml index 8a0ba4e..76014c4 100644 --- a/.tekton/centos-bootc-pull-request.yaml +++ b/.tekton/centos-bootc-pull-request.yaml @@ -9,7 +9,7 @@ metadata: pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "main" + == "main" && ! "docs/***".pathChanged() creationTimestamp: null labels: appstudio.openshift.io/application: centos-bootc diff --git a/.tekton/centos-bootc-push.yaml b/.tekton/centos-bootc-push.yaml index 3996b5c..d8f172a 100644 --- a/.tekton/centos-bootc-push.yaml +++ b/.tekton/centos-bootc-push.yaml @@ -9,7 +9,7 @@ metadata: pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "main" + == "main" && ! "docs/***".pathChanged() creationTimestamp: null labels: appstudio.openshift.io/application: centos-bootc diff --git a/.tekton/fedora-bootc-pull-request.yaml b/.tekton/fedora-bootc-pull-request.yaml index bbee168..c12edf4 100644 --- a/.tekton/fedora-bootc-pull-request.yaml +++ b/.tekton/fedora-bootc-pull-request.yaml @@ -9,7 +9,7 @@ metadata: pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "main" + == "main" && ! "docs/***".pathChanged() creationTimestamp: null labels: appstudio.openshift.io/application: fedora-bootc diff --git a/.tekton/fedora-bootc-push.yaml b/.tekton/fedora-bootc-push.yaml index 44a7a24..45a2f24 100644 --- a/.tekton/fedora-bootc-push.yaml +++ b/.tekton/fedora-bootc-push.yaml @@ -9,7 +9,7 @@ metadata: pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "main" + == "main" && ! "docs/***".pathChanged() creationTimestamp: null labels: appstudio.openshift.io/application: fedora-bootc