Skip to content

Commit e104920

Browse files
authored
fix: surge preview in wrong ref (#1897)
修复部署了原始分支而不是 PR 所在分支的问题。 antvis/antvis.github.io#85 (comment)
1 parent fdd9fcf commit e104920

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/preview.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: 🔂 Surge PR Preview
22

3-
on: [push, pull_request_target]
3+
on: pull_request_target
44

55
jobs:
66
preview:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
with:
11+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
1012
- uses: afc163/surge-preview@v1
1113
with:
1214
surge_token: ${{ secrets.SURGE_TOKEN }}

0 commit comments

Comments
 (0)