File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1616 distribution : ' adopt'
1717 - name : Build with Maven
1818 run : mvn --batch-mode --update-snapshots verify
19- - name : Upload coverage to codecov
20- uses : codecov/codecov-action@v3
19+ - name : Upload coverage to codecov (tokenless)
20+ if : >-
21+ github.event_name == 'pull_request' &&
22+ github.event.pull_request.head.repo.full_name != github.repository
2123 with :
22- files : " ${{ env.REPORT_NAME }}"
24+ files : " ${{ env.COVERAGE_REPORT_PATH }}"
25+ fail_ci_if_error : true
26+ - name : Upload coverage to codecov (with token)
27+ if : " ! github.event.pull_request.head.repo.fork "
28+ uses : codecov/codecov-action@v4
29+ with :
30+ token : ${{ secrets.CODECOV_TOKEN }}
31+ files : " ${{ env.COVERAGE_REPORT_PATH }}"
2332 fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments