File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
steps :
21
21
- 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'
22
27
- name : Set up JDK ${{ matrix.jdk }}
23
28
uses : actions/setup-java@v4
24
29
with :
Original file line number Diff line number Diff line change 23
23
language : [ java ]
24
24
25
25
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'
28
32
29
33
- name : Setup Java
30
34
uses : actions/setup-java@v4
Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- 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'
17
22
- name : Set up JDK 21
18
23
uses : actions/setup-java@v4
19
24
with :
28
33
- name : Generate coverage with JaCoCo
29
34
run : mvn -V --color always -ntp clean verify -Pci
30
35
- name : Upload coverage to Codecov
31
- uses : codecov/codecov-action@v4.6.0
36
+ uses : codecov/codecov-action@v5.0.7
32
37
with :
33
38
file : ' target/site/jacoco/jacoco.xml'
34
39
disable_search : true
You can’t perform that action at this time.
0 commit comments