Fixed split function in Tekton bindings
This commit is contained in:
parent
54354e3550
commit
e883d43d77
@ -24,12 +24,12 @@ spec:
|
||||
- name: deploy-master
|
||||
interceptors:
|
||||
- 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:
|
||||
- key: commit_sha
|
||||
expression: "body.after"
|
||||
- key: branch
|
||||
expression: "split(body.ref, '/')[2]"
|
||||
expression: "body.ref.split('/')[2]"
|
||||
- key: ref
|
||||
expression: "body.ref"
|
||||
- key: number
|
||||
|
Loading…
Reference in New Issue
Block a user