diff --git a/.github/workflows/auto-clang-format.yml b/.github/workflows/auto-clang-format.yml index 0ffea8d2..a6ea16dc 100644 --- a/.github/workflows/auto-clang-format.yml +++ b/.github/workflows/auto-clang-format.yml @@ -8,8 +8,9 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.head_ref || github.ref_name }} - fetch-depth: 0 + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + fetch-depth: 0 - uses: DoozyX/clang-format-lint-action@v0.20 with: source: '.'