|  | @ -19,18 +19,10 @@ spec: | 
			
		
	
		
		
			
				
					|  |  |     steps: |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |     - - name: notify |  |  |     - - name: notify | 
			
		
	
		
		
			
				
					|  |  |         template: send-status-webhook |  |  |         template: send-status-webhook | 
			
		
	
		
		
			
				
					|  |  |         when: "{{workflow.status}} == Succeeded" |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         arguments: |  |  |         arguments: | 
			
		
	
		
		
			
				
					|  |  |           parameters: |  |  |           parameters: | 
			
		
	
		
		
			
				
					|  |  |           - name: status |  |  |           - name: status | 
			
		
	
		
		
			
				
					
					|  |  |             value: Succeeded |  |  |             value: "{{ `{{ workflow.status }}` }}" | 
			
				
				
			
		
	
		
		
			
				
					|  |  |       - name: notify |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         template: send-status-webhook |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         when: "`{{"workflow.status"}}` != Succeeded" |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         arguments: |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           parameters: |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           - name: status |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             value: Failed |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |   - name: send-status-webhook |  |  |   - name: send-status-webhook | 
			
		
	
		
		
			
				
					|  |  |     inputs: |  |  |     inputs: | 
			
		
	
	
		
		
			
				
					|  | @ -43,6 +35,6 @@ spec: | 
			
		
	
		
		
			
				
					|  |  |         - '-X' |  |  |         - '-X' | 
			
		
	
		
		
			
				
					|  |  |         - 'POST' |  |  |         - 'POST' | 
			
		
	
		
		
			
				
					|  |  |         - '-H "Content-Type: application/json"' |  |  |         - '-H "Content-Type: application/json"' | 
			
		
	
		
		
			
				
					
					|  |  |         - '-d "{"status":"`{{ inputs.parameters.status }}`"}"' |  |  |         - '-d "{"status":"{{ `{{ inputs.parameters.status }}` }}"}"' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' |  |  |         - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |