Skip to content

Commit

Permalink
Upload coverage results to Codecov for PRs (even from a fork)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Jan 21, 2025
1 parent 395110e commit 1dcb2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
shell: Rscript {0}

- uses: codecov/codecov-action@v4
if: github.event.repository.fork == false
if: github.event.repository.fork == false || github.event_name == 'pull_request'
with:
# Fail if error if not on PR, or if on PR and token is given
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 1dcb2fe

Please sign in to comment.