Skip to content

Commit f618b39

Browse files
committed
Update checkout in CI to avoid shallow clone
1 parent 192422e commit f618b39

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ jobs:
3131
if: "!contains(github.event.head_commit.message, '[skip ci]')"
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- name: Git Config
35+
shell: bash
36+
run: |
37+
git config --global core.autocrlf false
38+
git config --global core.longpaths true
39+
40+
- name: Git Checkout
41+
uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
submodules: recursive
3545

3646
# See https://github.com/actions/checkout/issues/165#issuecomment-657673315
3747
- name: Create LFS file list
@@ -50,14 +60,6 @@ jobs:
5060
- name: Install NuGet
5161
uses: NuGet/setup-nuget@v2
5262

53-
- name: Setup Git
54-
shell: bash
55-
run: |
56-
git config --global core.autocrlf false
57-
git config --global core.longpaths true
58-
git fetch --prune --unshallow
59-
git submodule -q update --init --recursive
60-
6163
- name: Setup NuGet Cache
6264
uses: actions/cache@v4
6365
id: nuget-cache

0 commit comments

Comments
 (0)