Skip to content

Commit

Permalink
update cel expression
Browse files Browse the repository at this point in the history
  • Loading branch information
riprasad committed May 2, 2024
1 parent 4e9957f commit 2ceacc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .tekton/fms-hf-tuning-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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" && !"*.*".pathChanged()
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "main"
&& ( !".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: fms-hf-tuning
Expand Down
6 changes: 4 additions & 2 deletions .tekton/fms-hf-tuning-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
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" && !".github/*.*".pathChanged() && (!".tekton/*.*".pathChanged() || ".tekton/fms-hf-tuning-push.yaml".pathChanged())
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "main"
&& (!".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-push.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: fms-hf-tuning
Expand Down

0 comments on commit 2ceacc3

Please sign in to comment.