Update docker.yaml to notify on failure once (#16700)
This commit is contained in:
parent
2e084c0581
commit
0b861816c7
1 changed files with 7 additions and 2 deletions
9
.github/workflows/docker.yaml
vendored
9
.github/workflows/docker.yaml
vendored
|
|
@ -173,8 +173,13 @@ jobs:
|
|||
docker push $t
|
||||
fi
|
||||
|
||||
- name: Notify on failure
|
||||
if: github.event_name == 'push' && failure() # do not notify on cancelled() as cancelling is performed by hand
|
||||
notify:
|
||||
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
|
||||
with:
|
||||
payload: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue