mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 07:08:47 +01:00
[ci skip] chore: fix incorrect commit hash in PR builds (#11198)
* fix incorrect hash in PR builds * only apply ref on pull_request triggers
This commit is contained in:
parent
7e44684a1f
commit
042f15ffbd
1 changed files with 6 additions and 1 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -24,7 +24,12 @@ jobs:
|
||||||
java: [21]
|
java: [21]
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
steps:
|
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 }}
|
- name: JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue