Send message to internal chat room on Cloud TPU CI failure

This commit is contained in:
Skye Wanderman-Milne 2022-11-14 19:44:45 +00:00
parent da130cb074
commit 5da7976093

View File

@ -57,3 +57,11 @@ jobs:
env:
JAX_PLATFORMS: tpu,cpu
run: python -m pytest --tb=short tests examples
- name: Send chat on failure
if: failure()
run: |
curl --location --request POST '${{ secrets.BUILD_CHAT_WEBHOOK }}' \
--header 'Content-Type: application/json' \
--data-raw "{
'text': '\"$GITHUB_WORKFLOW\" job failed: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID'
}"