mirror of
				https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
				synced 2025-10-31 18:27:45 +00:00 
			
		
		
		
	[WIFI-4884] Add: notification on CI failure in Slack
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -37,3 +37,12 @@ jobs: | ||||
|         registry: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||
|         registry_user: ucentral | ||||
|         registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | ||||
|  | ||||
|     - name: Notify on failure via Slack | ||||
|       if: failure() && github.ref == 'refs/heads/main' | ||||
|       uses: rtCamp/action-slack-notify@v2 | ||||
|       env: | ||||
|         SLACK_USERNAME: GitHub Actions failure notifier | ||||
|         SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||||
|         SLACK_COLOR: "${{ job.status }}" | ||||
|         SLACK_ICON: https://raw.githubusercontent.com/quintessence/slack-icons/master/images/github-logo-slack-icon.png | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Dunaev
					Dmitry Dunaev