Notify only on first CI run (#17241)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
ca5e9daed1
commit
8a0fcbb89e
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -351,7 +351,7 @@ jobs:
|
||||||
if: always() # This ensures the job runs even if previous jobs fail
|
if: always() # This ensures the job runs even if previous jobs fail
|
||||||
steps:
|
steps:
|
||||||
- name: Check for failure and notify
|
- name: Check for failure and notify
|
||||||
if: (needs.HUB.result == 'failure' || needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.GPU.result == 'failure' || needs.RaspberryPi.result == 'failure' || needs.Conda.result == 'failure' ) && github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event_name == 'push')
|
if: (needs.HUB.result == 'failure' || needs.Benchmarks.result == 'failure' || needs.Tests.result == 'failure' || needs.GPU.result == 'failure' || needs.RaspberryPi.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@v1.27.0
|
uses: slackapi/slack-github-action@v1.27.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
|
|
|
||||||
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
|
|
@ -192,7 +192,7 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Check for failure and notify
|
- name: Check for failure and notify
|
||||||
if: needs.docker.result == 'failure' && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push'
|
if: needs.docker.result == 'failure' && github.repository == 'ultralytics/ultralytics' && github.event_name == 'push' && github.run_attempt == '1'
|
||||||
uses: slackapi/slack-github-action@v1.27.0
|
uses: slackapi/slack-github-action@v1.27.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue