Skip to content

Commit ae97728

Browse files
fix pr-preview to allow for external contributor previews with approval (#414)
1 parent 9aaf9fe commit ae97728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pr-preview.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy PR Preview
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize, reopened, closed]
66

77
# Cancel previous runs when new commits are pushed to the PR
@@ -14,6 +14,7 @@ jobs:
1414
name: Deploy PR Preview
1515
runs-on: ubuntu-latest
1616
if: github.event.action != 'closed'
17+
environment: preview # Requires manual approval for fork PRs
1718
permissions:
1819
pull-requests: write
1920
deployments: write

0 commit comments

Comments
 (0)