diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 8a3d41a91a..4eef6d3123 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -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: |