Skip to content

Commit 901152b

Browse files
authored
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.
1 parent d9a5bca commit 901152b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/nix.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,13 @@ jobs:
222222
path: coverage.xml
223223
retention-days: 30
224224
- name: upload coverage report
225-
uses: codecov/codecov-action@v3
225+
uses: wandalen/wretry.action@v1.3.0
226226
with:
227-
files: coverage.xml
228-
fail_ci_if_error: true
229-
verbose: true
230-
token: ${{ secrets.CODECOV_TOKEN }}
227+
action: codecov/codecov-action@v3
228+
with: |
229+
files: coverage.xml
230+
fail_ci_if_error: true
231+
verbose: true
232+
token: ${{ secrets.CODECOV_TOKEN }}
233+
attempt_limit: 5
234+
attempt_delay: 35000 # in milliseconds

0 commit comments

Comments
 (0)