test: fix pull request target action ref (#27649)

* test: pull request target action

* fix checkout pr ref
This commit is contained in:
骗你是小猫咪 2020-11-09 18:13:13 +08:00 committed by GitHub
parent e39407e1e5
commit 1b7a642b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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