Skip to content

Commit 6744400

Browse files
Merge pull request openshift-kni#1437 from rbaturov/konflux-onboard-4.20-fix
konflux: update on-cel-expression
2 parents 9e22180 + ecafc3e commit 6744400

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.tekton/numaresources-must-gather-4-20-pull-request.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ metadata:
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
12-
== "main"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "pull_request" &&
13+
target_branch == "main" &&
14+
(".tekton/numaresources-must-gather-4-20-pull-request.yaml".pathChanged() ||
15+
".konflux/must-gather/***".pathChanged() ||
16+
"must-gather/***".pathChanged())
1317
creationTimestamp: null
1418
labels:
1519
appstudio.openshift.io/application: numaresources-must-gather-4-20

.tekton/numaresources-must-gather-4-20-push.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ metadata:
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "main"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push" &&
12+
target_branch == "main" &&
13+
(".tekton/numaresources-must-gather-4-20-push.yaml".pathChanged() ||
14+
".konflux/must-gather/***".pathChanged() ||
15+
"must-gather/***".pathChanged())
1216
creationTimestamp: null
1317
labels:
1418
appstudio.openshift.io/application: numaresources-must-gather-4-20

0 commit comments

Comments
 (0)