Skip to content

Commit 61d198a

Browse files
committed
Fix commit ID for CI.
1 parent adcffd8 commit 61d198a

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
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:

.github/workflows/codeql.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
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

.github/workflows/coverage.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
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:
@@ -28,8 +33,8 @@ jobs:
2833
- name: Generate coverage with JaCoCo
2934
run: mvn -V --color always -ntp clean verify -Pci
3035
- name: Upload coverage to Codecov
31-
uses: codecov/[email protected].2
36+
uses: codecov/[email protected].7
3237
with:
33-
file: 'plugin/target/site/jacoco/jacoco.xml'
38+
file: 'target/site/jacoco/jacoco.xml'
3439
disable_search: true
3540
token: ${{secrets.CODECOV_TOKEN}}

0 commit comments

Comments
 (0)