From e451d76b981e43cf8a85517be9f36b1960f6c695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 11 Nov 2020 16:49:30 +0800 Subject: [PATCH] fix: surge preview (#7588) --- .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 a2cb9777..f5cfc35a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,12 +1,14 @@ name: 🔂 Surge PR Preview -on: [push, pull_request_target] +on: pull_request_target jobs: preview: runs-on: ubuntu-latest 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 }}