diff options
author | granny <[email protected]> | 2024-08-06 10:37:26 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-06 10:37:26 -0700 |
commit | 042f15ffbd7598c5b7beaf87d4ede45f8efc0aa3 (patch) | |
tree | c5b418c58f4492b70bd8bc4ba89167ac95a4a2b9 /.github | |
parent | 7e44684a1f1fcce27ae881c78da2b793537a6b05 (diff) | |
download | Paper-042f15ffbd7598c5b7beaf87d4ede45f8efc0aa3.tar.gz Paper-042f15ffbd7598c5b7beaf87d4ede45f8efc0aa3.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.yml | 7 |
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: |