|
@ -23,15 +23,8 @@ spec: |
|
|
steps: |
|
|
steps: |
|
|
- - name: notify |
|
|
- - name: notify |
|
|
template: send-status-webhook |
|
|
template: send-status-webhook |
|
|
arguments: |
|
|
|
|
|
parameters: |
|
|
|
|
|
- name: status |
|
|
|
|
|
value: "{{ `{{ workflow.status }}` }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: send-status-webhook |
|
|
- name: send-status-webhook |
|
|
inputs: |
|
|
|
|
|
parameters: |
|
|
|
|
|
- name: status |
|
|
|
|
|
container: |
|
|
container: |
|
|
image: curlimages/curl |
|
|
image: curlimages/curl |
|
|
command: ['curl'] |
|
|
command: ['curl'] |
|
@ -40,5 +33,5 @@ spec: |
|
|
- '-X' |
|
|
- '-X' |
|
|
- 'POST' |
|
|
- 'POST' |
|
|
- '-d' |
|
|
- '-d' |
|
|
- 'foo' |
|
|
- '{"status":"{{ `{{ workflow.status }}` }}"}' |
|
|
- 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' |
|
|
- 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' |
|
|