Skip to content

Commit 5e1627d

Browse files
authored
[skip changelog] upload coverage only on push events (#375)
1 parent a93b4b8 commit 5e1627d

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
@@ -71,7 +71,13 @@ jobs:
7171
flags: unit
7272

7373
- name: Send integration tests coverage to Codecov
74-
if: matrix.operating-system != 'windows-2019'
74+
# Since secrets aren't available on forks, we only
75+
# upload coverage on `push`. This might change if
76+
# Codecov whitelists GitHub, lifting the need
77+
# for a token.
78+
if: >
79+
matrix.operating-system != 'windows-2019' &&
80+
github.event_name == 'push'
7581
uses: codecov/[email protected]
7682
with:
7783
token: ${{secrets.CODECOV_TOKEN}}

0 commit comments

Comments
 (0)