Skip to content

Commit 6c5568c

Browse files
authored
add job to notify slack of proto failure (#339)
1 parent 3a6e1a2 commit 6c5568c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/update_protos.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,17 @@ jobs:
4646
body: This is an auto-generated PR to update proto definitions. Check the commits to see which repos and commits are responsible for the changes
4747
assignees: viamrobotics/sdk-netcode
4848
reviewers: viamrobotics/sdk-netcode
49+
50+
- name: Notify slack of failure
51+
uses: slackapi/slack-github-action@v1.24.0
52+
if: ${{ failure() }}
53+
with:
54+
payload: |
55+
{
56+
"text": "Flutter SDK update protos job has failed",
57+
"username": "Flutter SDK",
58+
"icon_url": "https://media.tenor.com/bZMubztJxGkAAAAe/charlie-brown-walking-charlie-brown.png"
59+
}
60+
env:
61+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEAM_SDK_WEBHOOK_URL }}
62+

0 commit comments

Comments
 (0)