mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
Increase git fetch depth (#70946)
We've gotten ~750 commits in the last 7 days. Upping the fetch depth to 2000 will make it more likely that PRs up to 2 weeks old will have enough fetch history to find a common parent. This _might_ address some of the failures we're seeing in the clang-format action where it cannot find a common base commit.
This commit is contained in:
4
.github/workflows/pr-code-format.yml
vendored
4
.github/workflows/pr-code-format.yml
vendored
@@ -10,14 +10,14 @@ jobs:
|
||||
- name: Fetch LLVM sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
fetch-depth: 2 # Fetches only the last 2 commits
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v39
|
||||
with:
|
||||
separator: ","
|
||||
fetch_depth: 100 # Fetches only the last 10 commits
|
||||
fetch_depth: 2000 # Fetches only the last 2000 commits
|
||||
|
||||
- name: "Listed files"
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user