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

pull/16696/head^2
Glenn Jocher 2 months ago committed by GitHub
parent 2e084c0581
commit 0b861816c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      .github/workflows/docker.yaml

@ -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: |

Loading…
Cancel
Save