Skip to content

Commit ecc9217

Browse files
authored
RSDK-9904 - add job to notify slack of proto failure (#847)
1 parent b092a73 commit ecc9217

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/update_protos.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,16 @@ jobs:
5252
gh pr view workflow/update-protos && gh pr reopen workflow/update-protos || gh pr create -B main -H workflow/update-protos -t "Automated Protos Update" -b "This is an auto-generated PR to update proto definitions. Check the commits to see which repos and commits are responsible for the changes" -a njooma -r njooma
5353
env:
5454
GH_TOKEN: ${{ github.token }}
55+
56+
- name: Notify slack of failure
57+
uses: slackapi/[email protected]
58+
if: ${{ failure() }}
59+
with:
60+
payload: |
61+
{
62+
"text": "Python SDK update protos job has failed",
63+
"username": "Python SDK",
64+
"icon_url": "https://media.tenor.com/bZMubztJxGkAAAAe/charlie-brown-walking-charlie-brown.png"
65+
}
66+
env:
67+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEAM_SDK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)