File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1919
2020 steps :
2121 - uses : actions/checkout@v4
22+ if : github.event_name == 'push'
23+ - uses : actions/checkout@v4
24+ with :
25+ ref : " ${{ github.event.pull_request.merge_commit_sha }}"
26+ if : github.event_name == 'pull_request_target'
2227 - name : Set up JDK ${{ matrix.jdk }}
2328 uses : actions/setup-java@v4
2429 with :
Original file line number Diff line number Diff line change 2323 language : [ java ]
2424
2525 steps :
26- - name : Checkout
27- uses : actions/checkout@v4
26+ - uses : actions/checkout@v4
27+ if : github.event_name == 'push'
28+ - uses : actions/checkout@v4
29+ with :
30+ ref : " ${{ github.event.pull_request.merge_commit_sha }}"
31+ if : github.event_name == 'pull_request_target'
2832
2933 - name : Setup Java
3034 uses : actions/setup-java@v4
Original file line number Diff line number Diff line change 1414
1515 steps :
1616 - uses : actions/checkout@v4
17+ if : github.event_name == 'push'
18+ - uses : actions/checkout@v4
19+ with :
20+ ref : " ${{ github.event.pull_request.merge_commit_sha }}"
21+ if : github.event_name == 'pull_request_target'
1722 - name : Set up JDK 21
1823 uses : actions/setup-java@v4
1924 with :
2833 - name : Generate coverage with JaCoCo
2934 run : mvn -V --color always -ntp clean verify -Pci
3035 - name : Upload coverage to Codecov
31- 36+ 3237 with :
3338 file : ' target/site/jacoco/jacoco.xml'
3439 disable_search : true
You can’t perform that action at this time.
0 commit comments