ソースを参照

chore: update preview.yml (#348)

xrkffgg 5 年 前
コミット
9d59193d38
1 ファイル変更3 行追加1 行削除
  1. 3 1
      .github/workflows/preview.yml

+ 3 - 1
.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 }}