Skip to content

Commit c952064

Browse files
authored
chore: remove fetch-depth: 0 of checkout action (#263)
The README[1] of actions/checkout says: 0 indicates all history for all branches and tags. I think we don't need all history, so the default 1 should be fine. [1] https://github.com/actions/checkout/blob/main/README.md?plain=1#L120
1 parent 6e5976c commit c952064

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
steps:
3333
- name: Checkout iceberg-cpp
3434
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
35-
with:
36-
fetch-depth: 0
3735
- name: Install dependencies
3836
shell: bash
3937
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

.github/workflows/test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ jobs:
4646
steps:
4747
- name: Checkout iceberg-cpp
4848
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
49-
with:
50-
fetch-depth: 0
5149
- name: Install dependencies
5250
shell: bash
5351
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
@@ -66,8 +64,6 @@ jobs:
6664
steps:
6765
- name: Checkout iceberg-cpp
6866
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
69-
with:
70-
fetch-depth: 0
7167
- name: Build Iceberg
7268
shell: bash
7369
run: ci/scripts/build_iceberg.sh $(pwd)
@@ -83,8 +79,6 @@ jobs:
8379
steps:
8480
- name: Checkout iceberg-cpp
8581
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
86-
with:
87-
fetch-depth: 0
8882
- name: Install dependencies
8983
shell: cmd
9084
run: |
@@ -119,8 +113,6 @@ jobs:
119113
python-version: '3.x'
120114
- name: Checkout iceberg-cpp
121115
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
122-
with:
123-
fetch-depth: 0
124116
- name: Install build dependencies
125117
run: |
126118
python3 -m pip install --upgrade pip

0 commit comments

Comments
 (0)