Update ci-testing.yml (#13421)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
7a5722738c
commit
b968b2d70c
1 file changed
+5
-5
@@ -137,14 +137,14 @@ jobs:
|
|||||||
|
|
||||||
Summary:
|
Summary:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [Benchmarks, Tests] # Add job names that you want to check for failure
|
needs: [Benchmarks, Tests]
|
||||||
if: always() # This ensures the job runs even if previous jobs fail
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Check for failure and notify
|
- name: Check for failure and notify
|
||||||
if: (needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.Benchmarks.result == 'cancelled' || needs.Tests.result == 'cancelled') && github.repository == 'ultralytics/yolov5' && (github.event_name == 'schedule' || github.event_name == 'push')
|
if: (needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.Benchmarks.result == 'cancelled' || needs.Tests.result == 'cancelled') && github.repository == 'ultralytics/yolov5' && (github.event_name == 'schedule' || github.event_name == 'push')
|
||||||
uses: slackapi/slack-github-action@v2.0.0
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
|
webhook-type: incoming-webhook
|
||||||
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
|
||||||
payload: |
|
payload: |
|
||||||
{"text": "<!channel> GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n"}
|
text: "<!channel> GitHub Actions error for ${{ github.workflow }} ❌\n\n\n*Repository:* https://github.com/${{ github.repository }}\n*Action:* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Author:* ${{ github.actor }}\n*Event:* ${{ github.event_name }}\n"
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
|
|
||||||
Reference in new issue
Block a user