diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index 1c69d6de86..d2e503d7de 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -15,14 +15,16 @@ jobs: - name: Fetch LLVM sources uses: actions/checkout@v4 with: - fetch-depth: 2 + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 # Fetch all history - name: Get changed files id: changed-files - uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1 + uses: tj-actions/changed-files@v41 with: separator: "," - skip_initial_fetch: true + # skip_initial_fetch: true + fetch_depth: 100 # Fetches only the last 100 commits - name: "Listed files" env: @@ -88,7 +90,8 @@ jobs: - name: Fetch LLVM sources uses: actions/checkout@v4 with: - fetch-depth: 2 + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 # Fetch all history path: build/main_src - name: Setup Python env @@ -115,7 +118,7 @@ jobs: - name: Fetch LLVM sources for head uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 # Fetch all history ref: ${{ fromJSON(steps.get-pr.outputs.result).head.ref }} repository: ${{ fromJSON(steps.get-pr.outputs.result).head.repo.full_name }}