diff --git a/.github/workflows/lint-and-format.yaml b/.github/workflows/lint-and-format.yaml index d9904b0e0..089b2ffce 100644 --- a/.github/workflows/lint-and-format.yaml +++ b/.github/workflows/lint-and-format.yaml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v5 with: token: ${{ secrets.GITHUB_TOKEN }} - ref: ${{ github.event.pull_request.head.ref }} + ref: refs/pull/${{ github.event.pull_request.number }}/head fetch-depth: 0 - name: Install pnpm