File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,14 @@ jobs:
137
137
138
138
Summary :
139
139
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()
142
142
steps :
143
143
- name : Check for failure and notify
144
144
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')
145
145
146
146
with :
147
+ webhook-type : incoming-webhook
148
+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_YOLO }}
147
149
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"
You can’t perform that action at this time.
0 commit comments