Skip to content

Commit 49d9db4

Browse files
author
Massimiliano Pippi
authored
[skip changelog] fix codecov job (#388)
1 parent 387269b commit 49d9db4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: .github/workflows/test.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ jobs:
6363
task test-integration
6464
6565
- name: Send unit tests coverage to Codecov
66-
if: matrix.operating-system != 'windows-2019'
66+
# Since secrets aren't available on forks, we only
67+
# upload coverage on `push`. This might change if
68+
# Codecov whitelists GitHub, lifting the need
69+
# for a token.
70+
if: >
71+
matrix.operating-system != 'windows-2019' &&
72+
github.event_name == 'push'
6773
uses: codecov/[email protected]
6874
with:
6975
token: ${{secrets.CODECOV_TOKEN}}

0 commit comments

Comments
 (0)