diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index fd02a02c1..139a08aa9 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,12 +1,14 @@ name: 🔂 Surge PR Preview -on: [push, pull_request] +on: pull_request 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 }}