chore: retry codecov upload (#4896)

Update to #4849, using a workaround for spurious codecov upload errors.

Spurious codecov upload errors are expected in public repos which rely
on PRs via forks. Retrying uploads is a decent and easy workaround.
This commit is contained in:
Bronek Kozicki
2024-01-25 00:46:24 +00:00
committed by GitHub
parent d9a5bca625
commit 901152bd93

View File

@@ -222,9 +222,13 @@ jobs:
path: coverage.xml
retention-days: 30
- name: upload coverage report
uses: codecov/codecov-action@v3
uses: wandalen/wretry.action@v1.3.0
with:
files: coverage.xml
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
action: codecov/codecov-action@v3
with: |
files: coverage.xml
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
attempt_limit: 5
attempt_delay: 35000 # in milliseconds