Skip to content

Commit d5ec69d

Browse files
authored
RSDK-9904 - add job to notify slack of proto failure (#97)
1 parent 2798213 commit d5ec69d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/update-protos.yml

+13
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ jobs:
3737
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
3838
env:
3939
GH_TOKEN: ${{ github.token }}
40+
41+
- name: Notify slack of failure
42+
uses: slackapi/[email protected]
43+
if: ${{ failure() }}
44+
with:
45+
payload: |
46+
{
47+
"text": "Java SDK update protos job has failed",
48+
"username": "Java SDK",
49+
"icon_url": "https://media.tenor.com/bZMubztJxGkAAAAe/charlie-brown-walking-charlie-brown.png"
50+
}
51+
env:
52+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEAM_SDK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)