Skip to content

Commit

Permalink
[ci skip] chore: fix incorrect commit hash in PR builds (#11198)
Browse files Browse the repository at this point in the history
* fix incorrect hash in PR builds

* only apply ref on pull_request triggers
  • Loading branch information
granny authored Aug 6, 2024
1 parent 7e44684 commit 042f15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ jobs:
java: [21]
fail-fast: true
steps:
- uses: actions/checkout@v4
- if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v4
- if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit 042f15f

Please sign in to comment.