Skip to content

Commit e3be218

Browse files
committed
Do not trigger push pipeline if only tekton files are updated
1 parent 2b849c2 commit e3be218

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.tekton/bootc-image-builder-push.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ metadata:
77
build.appstudio.redhat.com/target_branch: "{{target_branch}}"
88
pipelinesascode.tekton.dev/max-keep-runs: "3"
99
pipelinesascode.tekton.dev/on-cel-expression:
10-
event == "push" && target_branch
11-
== "main"
10+
event == "push" && target_branch == "main" && files.all.exists(x,!x.startsWith(".tekton/"))
1211
creationTimestamp: null
1312
labels:
1413
appstudio.openshift.io/application: bootc-image-builder

0 commit comments

Comments
 (0)