From d0a89f76164d4103ed130873467227c92fb785e6 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Sat, 26 Aug 2023 23:52:40 -0500 Subject: [PATCH] [Backport 2.x] Retry code coverage upload on failure (#3242) (#3243) Signed-off-by: Peter Nied (cherry picked from commit d7d7f626042a42626bacd25de4af178b8dc37e18) --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecbf4242dd..f750f75794 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,10 +55,15 @@ jobs: -x test - name: Coverage - uses: codecov/codecov-action@v1 + uses: Wandalen/wretry.action@v1.3.0 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./build/reports/jacoco/test/jacocoTestReport.xml + attempt_limit: 3 + attempt_delay: 2000 + action: codecov/codecov-action@v3 + with: | + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + files: ./build/reports/jacoco/test/jacocoTestReport.xml - uses: actions/upload-artifact@v3 if: always()