Update docker.yaml to notify on failure once (#16700)

This commit is contained in:
Glenn Jocher 2024-10-05 00:53:33 +02:00 committed by GitHub
parent 2e084c0581
commit 0b861816c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,8 +173,13 @@ jobs:
docker push $t docker push $t
fi fi
- name: Notify on failure notify:
if: github.event_name == 'push' && failure() # do not notify on cancelled() as cancelling is performed by hand runs-on: ubuntu-latest
needs: docker
if: always() # This ensures the job always runs
steps:
- name: Check for failure and notify
if: needs.docker.result == 'failure' && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push'
uses: slackapi/slack-github-action@v1.27.0 uses: slackapi/slack-github-action@v1.27.0
with: with:
payload: | payload: |