summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-01-15 15:40:14 -0500
committerGitHub <noreply@github.com>2024-01-15 15:40:14 -0500
commit81e77c02a82c99a2b5842489cb5660c7419414b2 (patch)
treebf8ae56d8df2151b7a05ac9f20c75cd1f02f9880 /.github
parent7be98344e9dc55912bf8b4f6321640999cf850eb (diff)
ci: add logic to retry codecov upload (#1391)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/coverage.yml16
1 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 7a13d6fa..d3cae7a1 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -70,11 +70,15 @@ jobs:
run: |
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info --locked --target=${{ matrix.info.target }}
- # TODO: Might be good to allow this to retry.
+ # The token is generally not needed, but sometimes the default shared token hits limits.
- name: Upload to codecov.io
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4
+ uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0
with:
- files: lcov.info
- fail_ci_if_error: true
- token: ${{ secrets.CODECOV_TOKEN }} # This is generally not needed, but sometimes the default shared token hits limits.
- flags: ${{ matrix.info.os }}
+ action: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4
+ with: |
+ files: lcov.info
+ fail_ci_if_error: true
+ token: ${{ secrets.CODECOV_TOKEN }}
+ flags: ${{ matrix.info.os }}
+ attempt_limit: 5
+ attempt_delay: 1500