Skip to content

Commit

Permalink
Conditionally submit to CodeCov
Browse files Browse the repository at this point in the history
b/c tokenless uploading is unsupported since v4, see
https://docs.codecov.com/docs/adding-the-codecov-token#github-actions
  • Loading branch information
atodorov committed Mar 4, 2024
1 parent 5158b47 commit 058b714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ jobs:
- name: Send coverage to CodeCov
uses: codecov/codecov-action@v4
if: env.CODECOV_TOKEN
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
verbose: true

0 comments on commit 058b714

Please sign in to comment.