Skip to content

Commit

Permalink
Trigger pipeline only if event title starts with Konflux
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Kandagatla <ckandaga@redhat.com>
  • Loading branch information
ckandag committed May 16, 2024
1 parent 5360090 commit 5ea7344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tekton/ocm-cli-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
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"
== "main" && event_title.startsWith("[KONFLUX_RELEASE]")
creationTimestamp: null
labels:
appstudio.openshift.io/application: ocm-cli
Expand Down
2 changes: 1 addition & 1 deletion .tekton/ocm-cli-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
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"
== "main" && event_title.startsWith("[KONFLUX_RELEASE]")
creationTimestamp: null
labels:
appstudio.openshift.io/application: ocm-cli
Expand Down

0 comments on commit 5ea7344

Please sign in to comment.