Fixed split function in Tekton bindings

This commit is contained in:
Marcus Noble 2020-06-03 19:33:57 +01:00
parent 54354e3550
commit e883d43d77
1 changed files with 2 additions and 2 deletions

View File

@ -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