Skip to content

Commit e59c480

Browse files
Use checkout for git setup
1 parent eccffe8 commit e59c480

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

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

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444

4545
steps:
4646
- uses: actions/checkout@v2
47+
with:
48+
submodules: recursive
49+
run: |
50+
git config --global core.autocrlf false
51+
git config --global core.longpaths true
4752
4853
# See https://github.com/actions/checkout/issues/165#issuecomment-657673315
4954
- name: Create LFS file list
@@ -62,14 +67,6 @@ jobs:
6267
- name: Install NuGet
6368
uses: NuGet/setup-nuget@v1
6469

65-
- name: Setup Git
66-
shell: bash
67-
run: |
68-
git config --global core.autocrlf false
69-
git config --global core.longpaths true
70-
git fetch --prune --unshallow
71-
git submodule -q update --init --recursive
72-
7370
- name: Setup NuGet Cache
7471
uses: actions/cache@v2
7572
id: nuget-cache
@@ -113,17 +110,14 @@ jobs:
113110

114111
steps:
115112
- uses: actions/checkout@v2
116-
117-
- name: Install NuGet
118-
uses: NuGet/setup-nuget@v1
119-
120-
- name: Setup Git
121-
shell: bash
113+
with:
114+
submodules: recursive
122115
run: |
123116
git config --global core.autocrlf false
124117
git config --global core.longpaths true
125-
git fetch --prune --unshallow
126-
git submodule -q update --init --recursive
118+
119+
- name: Install NuGet
120+
uses: NuGet/setup-nuget@v1
127121

128122
- name: Pack
129123
shell: pwsh

0 commit comments

Comments
 (0)