We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb194fe commit 02337e6Copy full SHA for 02337e6
1 file changed
.github/workflows/ci.yml
@@ -89,9 +89,15 @@ jobs:
89
if-no-files-found: error
90
91
- name: Upload to Codecov (optional)
92
- if: always()
+ # CODECOV_TOKEN is not available to PRs from forks.
93
+ if: |
94
+ always() && (
95
+ github.event_name == 'push' ||
96
+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
97
+ )
98
uses: codecov/codecov-action@v5
99
with:
100
files: coverage.xml
- fail_ci_if_error: false
101
+ token: ${{ secrets.CODECOV_TOKEN }}
102
+ fail_ci_if_error: true
103
verbose: true
0 commit comments