Skip to content

Commit 6d2a4d5

Browse files
authored
Merge pull request #120 from NotHimmel/pr_checkout
switch to pull_request_target and update checkout step
2 parents f2f11ec + 16d8b14 commit 6d2a4d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-preview.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Pr preview
22

33
on:
4-
pull_request:
4+
pull_request_target:
55

66
jobs:
77
build-and-deploy:
@@ -16,6 +16,8 @@ jobs:
1616
- name: Checkout Documentation Repository (ivorysql_doc)
1717
uses: actions/checkout@v4
1818
with:
19+
ref: ${{ github.event.pull_request.head.sha }}
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
1921
path: ivorysql_doc
2022

2123
- name: Fetch All Relevant Branches into Local Docs Repo

0 commit comments

Comments
 (0)