Skip to content

Commit 809d2ae

Browse files
committed
Update clang-format-checker.yml
1 parent 909c552 commit 809d2ae

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/clang-format-checker.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
- name: Fetch LLVM sources
1616
uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 2
18+
repository: ${{ github.event.pull_request.head.repo.full_name }}
19+
fetch-depth: 0 # Fetch all history
1920

2021
- name: Get changed files
2122
id: changed-files
2223
uses: tj-actions/changed-files@v41
2324
with:
2425
separator: ","
25-
fetch_depth: 100 # Fetches only the last 10 commits
26+
fetch_depth: 100 # Fetches only the last 100 commits
2627

2728
- name: "Listed files"
2829
env:
@@ -88,7 +89,8 @@ jobs:
8889
- name: Fetch LLVM sources
8990
uses: actions/checkout@v4
9091
with:
91-
fetch-depth: 2
92+
repository: ${{ github.event.pull_request.head.repo.full_name }}
93+
fetch-depth: 0 # Fetch all history
9294
path: build/main_src
9395

9496
- name: Setup Python env
@@ -115,7 +117,7 @@ jobs:
115117
- name: Fetch LLVM sources for head
116118
uses: actions/checkout@v4
117119
with:
118-
fetch-depth: 2
120+
fetch-depth: 0 # Fetch all history
119121
ref: ${{ fromJSON(steps.get-pr.outputs.result).head.ref }}
120122
repository: ${{ fromJSON(steps.get-pr.outputs.result).head.repo.full_name }}
121123

0 commit comments

Comments
 (0)