Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: PR Preview Deploy

on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened, closed]

concurrency:
group: preview-${{ github.ref }}
group: preview-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
Expand All @@ -15,8 +15,10 @@ jobs:
contents: write
pull-requests: write
steps:
- name: Checkout repository
- name: Checkout PR head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -39,3 +41,4 @@ jobs:
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
token: ${{ secrets.GITHUB_TOKEN }}