From 195f5c46576997aaacca7aec68decf6191f41e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BF=8A=20SionYang?= Date: Wed, 21 Aug 2024 10:05:16 +0800 Subject: [PATCH] checkout pr code to do ci. (#12529) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb98d40e445..49caa62ada9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,12 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + - if: github.event_name == 'pull_request_target' + run: echo "REF=refs/pull/${{ github.event.number }}/merge" >> "$GITHUB_ENV" - name: "Checkout" uses: actions/checkout@v4 + with: + ref: ${{ env.REF }} - name: "Set up JDK ${{ matrix.java }}" uses: actions/setup-java@v4 with: