Skip to content

Commit

Permalink
Fix commit ID for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 27, 2024
1 parent cabcc60 commit 3e6673d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:

steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
if: github.event_name == 'pull_request_target'
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
language: [ java ]

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
if: github.event_name == 'pull_request_target'

- name: Setup Java
uses: actions/setup-java@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:

steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
if: github.event_name == 'pull_request_target'
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
Expand All @@ -28,7 +33,7 @@ jobs:
- name: Generate coverage with JaCoCo
run: mvn -V --color always -ntp clean verify -Pci
- name: Upload coverage to Codecov
uses: codecov/[email protected].2
uses: codecov/[email protected].7
with:
file: 'target/site/jacoco/jacoco.xml'
disable_search: true
Expand Down

0 comments on commit 3e6673d

Please sign in to comment.