Use new Ultralytics Retry action (#17419)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Paula Derrenger 2024-11-08 12:31:42 +01:00 committed by GitHub
parent f2f81aa5e8
commit 84bfe3c2e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 14 deletions

View file

@ -134,12 +134,12 @@ jobs:
- name: Build Image - name: Build Image
if: github.event_name == 'push' || github.event.inputs[matrix.dockerfile] == 'true' if: github.event_name == 'push' || github.event.inputs[matrix.dockerfile] == 'true'
uses: nick-invision/retry@v3 uses: ultralytics/actions/retry@main
with: with:
timeout_minutes: 120 timeout_minutes: 120
retry_wait_seconds: 60 retry_delay_seconds: 60
max_attempts: 3 # retry twice retries: 2
command: | run: |
docker build \ docker build \
--platform ${{ matrix.platforms }} \ --platform ${{ matrix.platforms }} \
-f docker/${{ matrix.dockerfile }} \ -f docker/${{ matrix.dockerfile }} \

View file

@ -29,12 +29,12 @@ jobs:
sudo mv lychee /usr/local/bin sudo mv lychee /usr/local/bin
- name: Test Markdown and HTML links with retry - name: Test Markdown and HTML links with retry
uses: nick-invision/retry@v3 uses: ultralytics/actions/retry@main
with: with:
timeout_minutes: 5 timeout_minutes: 60
retry_wait_seconds: 60 retry_delay_seconds: 300
max_attempts: 3 retries: 2
command: | run: |
lychee \ lychee \
--scheme https \ --scheme https \
--timeout 60 \ --timeout 60 \
@ -59,12 +59,12 @@ jobs:
- name: Test Markdown, HTML, YAML, Python and Notebook links with retry - name: Test Markdown, HTML, YAML, Python and Notebook links with retry
if: github.event_name == 'workflow_dispatch' if: github.event_name == 'workflow_dispatch'
uses: nick-invision/retry@v3 uses: ultralytics/actions/retry@main
with: with:
timeout_minutes: 5 timeout_minutes: 60
retry_wait_seconds: 60 retry_delay_seconds: 300
max_attempts: 3 retries: 2
command: | run: |
lychee \ lychee \
--scheme https \ --scheme https \
--timeout 60 \ --timeout 60 \