Skip to content

Commit f89905d

Browse files
authored
check out the source repository on PRs (#189)
1 parent c655a73 commit f89905d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/render.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ jobs:
4848
echo OUTPUT_FILENAME="${filename}" >> "$GITHUB_OUTPUT"
4949
echo output filename: ${filename}
5050
51-
# For pull requests, check out the head ref of the source branch.
51+
# For pull requests, check out the head ref of the source branch from the source repo.
5252
- name: Checkout
5353
if: inputs.workflow == 'pr'
5454
uses: actions/checkout@v4
5555
with:
5656
ref: ${{ github.head_ref }}
57+
repository: ${{ github.event.pull_request.head.repo.full_name }}
5758
fetch-depth: 0
5859
fetch-tags: true
5960
# For other workflows, check out the requested revision (which defaults to

0 commit comments

Comments
 (0)