From 9f057c9798eafe1c9b7474ca2ce90ad68ee11821 Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Mon, 23 Sep 2024 22:05:42 +0000 Subject: [PATCH] check out the source repository on PRs --- .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