mirror of
https://github.com/ultralytics/ultralytics.git
synced 2025-09-15 15:48:41 +08:00
Fix Slack notifications on scheduled CI failure (#22012)
Co-authored-by: Jing Qiu <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
parent
c81383c32f
commit
af3bf33653
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -419,11 +419,7 @@ jobs:
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check for failure and notify
|
||||
if: >
|
||||
github.repository == 'ultralytics/ultralytics' &&
|
||||
(github.event_name == 'schedule' || github.event_name == 'push') &&
|
||||
github.run_attempt == '1' &&
|
||||
(failure() || cancelled())
|
||||
if: (needs.HUB.result == 'failure' || needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.GPU.result == 'failure' || needs.RaspberryPi.result == 'failure' || needs.NVIDIA_Jetson.result == 'failure' || needs.Conda.result == 'failure' ) && github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push') && github.run_attempt == '1'
|
||||
uses: slackapi/slack-github-action@v2.1.1
|
||||
with:
|
||||
webhook-type: incoming-webhook
|
||||
|
||||
Loading…
Reference in New Issue
Block a user