From 1b7a642b57b3147d5980b25b02aaede5612fc534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Mon, 9 Nov 2020 18:13:13 +0800 Subject: [PATCH] test: fix pull request target action ref (#27649) * test: pull request target action * fix checkout pr ref --- .github/workflows/ui.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 83b999feb3..32b90fc89f 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -11,6 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout + if: github.event_name == 'pull_request_target' + uses: actions/checkout@master + with: + ref: refs/pull/${{ github.event.pull_request.number }}/merge + + - name: checkout + if: github.event_name == 'push' uses: actions/checkout@master - name: install