Make checkout action work with forks

This commit is contained in:
Stefan Haller 2024-07-13 14:39:28 +02:00
parent 1919a2d2d6
commit 463cf35e64

View file

@ -231,6 +231,7 @@ jobs:
- name: "Checkout PR branch and all PR commits" - name: "Checkout PR branch and all PR commits"
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }} ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }} fetch-depth: ${{ env.PR_FETCH_DEPTH }}