From b1bdd6fc718bfbcf45a39d001af2c8711f9b2efb Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Wed, 27 Nov 2024 10:20:29 +0100 Subject: [PATCH] Fix commit ID for CI. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index caa2281f..1f1c35c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: