Skip to content

Commit

Permalink
chore: retry codecov upload (XRPLF#4896)
Browse files Browse the repository at this point in the history
Update to XRPLF#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.
  • Loading branch information
Bronek authored and ximinez committed Jan 26, 2024
1 parent d9a5bca commit 34a789c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 34a789c

Please sign in to comment.