diff --git a/helm-socks-frontend/templates/tests/workflow.yaml b/helm-socks-frontend/templates/tests/workflow.yaml index a1e9810..7dad866 100644 --- a/helm-socks-frontend/templates/tests/workflow.yaml +++ b/helm-socks-frontend/templates/tests/workflow.yaml @@ -19,18 +19,10 @@ spec: steps: - - name: notify template: send-status-webhook - when: "{{workflow.status}} == Succeeded" arguments: parameters: - name: status - value: Succeeded - - name: notify - template: send-status-webhook - when: "`{{"workflow.status"}}` != Succeeded" - arguments: - parameters: - - name: status - value: Failed + value: "{{ `{{ workflow.status }}` }}" - name: send-status-webhook inputs: @@ -43,6 +35,6 @@ spec: - '-X' - 'POST' - '-H "Content-Type: application/json"' - - '-d "{"status":"`{{ inputs.parameters.status }}`"}"' + - '-d "{"status":"{{ `{{ inputs.parameters.status }}` }}"}"' - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb'