Skip to content

Commit

Permalink
Do not upload coverage results to Codecov when run in a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Jan 20, 2025
1 parent ea88914 commit 395110e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:

name: test-coverage.yaml

Expand Down Expand Up @@ -38,6 +39,7 @@ jobs:
shell: Rscript {0}

- uses: codecov/codecov-action@v4
if: github.event.repository.fork == false
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 395110e

Please sign in to comment.