File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 16
16
distribution : ' adopt'
17
17
- name : Build with Maven
18
18
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
23
+ uses : codecov/codecov-action@v4
21
24
with :
22
- files : " ${{ env.REPORT_NAME }}"
25
+ files : " ${{ env.COVERAGE_REPORT_PATH }}"
26
+ fail_ci_if_error : true
27
+ - name : Upload coverage to codecov (with token)
28
+ if : " ! github.event.pull_request.head.repo.fork "
29
+ uses : codecov/codecov-action@v4
30
+ with :
31
+ token : ${{ secrets.CODECOV_TOKEN }}
32
+ files : " ${{ env.COVERAGE_REPORT_PATH }}"
23
33
fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments