aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorgranny <[email protected]>2024-08-06 10:37:26 -0700
committergranny <[email protected]>2024-08-06 10:37:26 -0700
commitdd3e0459d7ad4f7eea44b82c04c33377ebc968ef (patch)
tree9f90dfff1ca3e11cde7dcc3831a8ca42ab54ca59 /.github
parentf8f2bd7db7d506bcab32be0bdc7ee3ad92c47f4e (diff)
downloadPaper-dd3e0459d7ad4f7eea44b82c04c33377ebc968ef.tar.gz
Paper-dd3e0459d7ad4f7eea44b82c04c33377ebc968ef.zip
[ci skip] chore: fix incorrect commit hash in PR builds (#11198)
* fix incorrect hash in PR builds * only apply ref on pull_request triggers
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cef01ede78..09a170d7fe 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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: