From 0b7618f37fff9475aab9e9b85377944be4fdfb5e Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Wed, 11 Nov 2020 18:21:08 +0800 Subject: [PATCH] chore: update preview.yml (#7539) --- .github/workflows/preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4bea6ea5f..2dcc70700 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,6 +1,6 @@ name: 🔂 Surge PR Preview -on: [push, pull_request_target] +on: pull_request_target jobs: preview: @@ -9,6 +9,8 @@ jobs: PUBLIC_PATH: '/' steps: - uses: actions/checkout@v2 + with: + ref: refs/pull/${{ github.event.pull_request.number }}/merge - uses: afc163/surge-preview@v1 with: surge_token: ${{ secrets.SURGE_TOKEN }}