Fixed split function in Tekton bindings
This commit is contained in:
parent
54354e3550
commit
e883d43d77
@ -24,12 +24,12 @@ spec:
|
|||||||
- name: deploy-master
|
- name: deploy-master
|
||||||
interceptors:
|
interceptors:
|
||||||
- cel:
|
- cel:
|
||||||
filter: "header.match('X-GitHub-Event', 'push') && split(body.ref, '/')[2] == body.repository.default_branch"
|
filter: "header.match('X-GitHub-Event', 'push') && body.ref.split('/')[2] == body.repository.default_branch"
|
||||||
overlays:
|
overlays:
|
||||||
- key: commit_sha
|
- key: commit_sha
|
||||||
expression: "body.after"
|
expression: "body.after"
|
||||||
- key: branch
|
- key: branch
|
||||||
expression: "split(body.ref, '/')[2]"
|
expression: "body.ref.split('/')[2]"
|
||||||
- key: ref
|
- key: ref
|
||||||
expression: "body.ref"
|
expression: "body.ref"
|
||||||
- key: number
|
- key: number
|
||||||
|
Loading…
Reference in New Issue
Block a user