Skip to content

Commit b968b2d

Browse files
authored
Update ci-testing.yml (#13421)
Signed-off-by: Glenn Jocher <[email protected]>
1 parent 7a57227 commit b968b2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci-testing.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ jobs:
137137
138138
Summary:
139139
runs-on: ubuntu-latest
140-
needs: [Benchmarks, Tests] # Add job names that you want to check for failure
141-
if: always() # This ensures the job runs even if previous jobs fail
140+
needs: [Benchmarks, Tests]
141+
if: always()
142142
steps:
143143
- name: Check for failure and notify
144144
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')
145145
uses: slackapi/[email protected]
146146
with:
147+
webhook-type: incoming-webhook
148+
webhook: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
147149
payload: |
148-
{"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"}
149-
env:
150-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
150+
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"

0 commit comments

Comments
 (0)