From 20a42c65cf728aef4dc1886b4612087ebf654df1 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 22 Apr 2023 17:16:43 +0200 Subject: [PATCH] CI: Add automatic retries to codecov upload action (#91857) --- .github/workflows/ci.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e45702c4124..56eb78eee78 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1102,12 +1102,20 @@ jobs: uses: actions/download-artifact@v3 - name: Upload coverage to Codecov (full coverage) if: needs.info.outputs.test_full_suite == 'true' - uses: codecov/codecov-action@v3.1.3 + uses: Wandalen/wretry.action@v1.0.36 with: - fail_ci_if_error: true - flags: full-suite + action: codecov/codecov-action@v3.1.3 + with: | + fail_ci_if_error: true + flags: full-suite + attempt_limit: 5 + attempt_delay: 30000 - name: Upload coverage to Codecov (partial coverage) if: needs.info.outputs.test_full_suite == 'false' - uses: codecov/codecov-action@v3.1.3 + uses: Wandalen/wretry.action@v1.0.36 with: - fail_ci_if_error: true + action: codecov/codecov-action@v3.1.3 + with: | + fail_ci_if_error: true + attempt_limit: 5 + attempt_delay: 30000