diff --git a/.github/workflows/pr-validation.yaml b/.github/workflows/pr-validation.yaml index 306f7b4..69124b0 100644 --- a/.github/workflows/pr-validation.yaml +++ b/.github/workflows/pr-validation.yaml @@ -17,7 +17,7 @@ jobs: run: | git clone --depth=1 "https://x-access-token:${{ secrets.GITEA_TOKEN }}@git.farh.net/${{ github.repository }}.git" . git fetch origin "$BASE_REF" --depth=1 - git fetch origin "$HEAD_REF" --depth=1 + git fetch origin +refs/pull/*/head:refs/pull/*/head --depth=1 git checkout "${{ github.sha }}" - name: Install actionlint