mirror of
https://github.com/ROCm/jax.git
synced 2025-04-15 19:36:06 +00:00
TPU CI: don't notify when testing the workflow from a branch
This commit is contained in:
parent
58af581e3b
commit
b4564a2a57
3
.github/workflows/cloud-tpu-ci-nightly.yml
vendored
3
.github/workflows/cloud-tpu-ci-nightly.yml
vendored
@ -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' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user