diff --git a/.github/workflows/cloud-tpu-ci-nightly.yml b/.github/workflows/cloud-tpu-ci-nightly.yml index 5a86ad6e121e..a2476fc85837 100644 --- a/.github/workflows/cloud-tpu-ci-nightly.yml +++ b/.github/workflows/cloud-tpu-ci-nightly.yml @@ -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' \