From f89905d4e9f0ce284d433e12a9b20decacac74dd Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Mon, 23 Sep 2024 15:09:16 -0700 Subject: [PATCH] check out the source repository on PRs (#189) --- .github/workflows/render.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 9bee8ac..9636632 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -48,12 +48,13 @@ jobs: echo OUTPUT_FILENAME="${filename}" >> "$GITHUB_OUTPUT" echo output filename: ${filename} - # For pull requests, check out the head ref of the source branch. + # For pull requests, check out the head ref of the source branch from the source repo. - name: Checkout if: inputs.workflow == 'pr' uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 fetch-tags: true # For other workflows, check out the requested revision (which defaults to