We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
codecov/codecov-action
v4
1 parent 17d5dad commit 1ba8b44Copy full SHA for 1ba8b44
.github/workflows/upload_coverage_report.yml
@@ -27,9 +27,17 @@ jobs:
27
--workspace
28
--lcov
29
--output-path "${{ env.REPORT_NAME }}"
30
- - name: Upload coverage to codecov
31
- uses: codecov/codecov-action@v3
+ - name: Upload coverage to codecov (tokenless)
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
32
+ uses: codecov/codecov-action@v4
33
with:
34
files: "${{ env.REPORT_NAME }}"
35
fail_ci_if_error: true
36
+ - name: Upload coverage to codecov (with token)
37
+ if: "! github.event.pull_request.head.repo.fork "
38
39
+ with:
40
+ token: ${{ secrets.CODECOV_TOKEN }}
41
+ files: "${{ env.REPORT_NAME }}"
42
+ fail_ci_if_error: true
43
...
0 commit comments