Skip to content

Commit ff9a1d5

Browse files
Merge pull request #496 from jdblischak/no-cov-upload-from-fork
Do not upload coverage results to Codecov when run in a fork
2 parents 98f1234 + 3c60081 commit ff9a1d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test-coverage.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7+
workflow_dispatch:
78

89
name: test-coverage.yaml
910

@@ -38,6 +39,7 @@ jobs:
3839
shell: Rscript {0}
3940

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

0 commit comments

Comments
 (0)