TPU CI: don't notify when testing the workflow from a branch

This commit is contained in:
Skye Wanderman-Milne 2022-11-16 21:27:24 +00:00
parent 58af581e3b
commit b4564a2a57

View File

@ -55,7 +55,8 @@ jobs:
JAX_PLATFORMS: tpu,cpu
run: python -m pytest --tb=short tests examples
- name: Send chat on failure
if: failure()
# Don't notify when testing the workflow from a branch.
if: ${{ failure() && github.ref_name == 'main' }}
run: |
curl --location --request POST '${{ secrets.BUILD_CHAT_WEBHOOK }}' \
--header 'Content-Type: application/json' \