Skip to content

Commit e3893b1

Browse files
authored
Merge pull request git-lfs#4795 from bk2204/actions-checkout-v2
.github/workflows: switch to actions/checkout@v2
2 parents eb0dc94 + dea8b4e commit e3893b1

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
go: ['1.17.x']
1111
runs-on: ${{ matrix.os }}
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
1416
- uses: actions/setup-ruby@v1
1517
- uses: actions/setup-go@v2
1618
with:
@@ -37,7 +39,9 @@ jobs:
3739
go: ['1.13.x', '1.14.x']
3840
runs-on: ubuntu-20.04
3941
steps:
40-
- uses: actions/checkout@v1
42+
- uses: actions/checkout@v2
43+
with:
44+
fetch-depth: 0
4145
- uses: actions/setup-go@v2
4246
with:
4347
go-version: ${{ matrix.go }}
@@ -46,7 +50,9 @@ jobs:
4650
name: Build on Windows
4751
runs-on: windows-latest
4852
steps:
49-
- uses: actions/checkout@v1
53+
- uses: actions/checkout@v2
54+
with:
55+
fetch-depth: 0
5056
- uses: actions/setup-ruby@v1
5157
- uses: actions/setup-go@v2
5258
with:
@@ -96,7 +102,9 @@ jobs:
96102
os: [ubuntu-20.04, macos-latest]
97103
runs-on: ${{ matrix.os }}
98104
steps:
99-
- uses: actions/checkout@v1
105+
- uses: actions/checkout@v2
106+
with:
107+
fetch-depth: 0
100108
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
101109
- run: script/build-git "$HOME/git"
102110
- run: GIT_DEFAULT_HASH=sha256 script/cibuild
@@ -107,15 +115,19 @@ jobs:
107115
os: [ubuntu-20.04, macos-latest]
108116
runs-on: ${{ matrix.os }}
109117
steps:
110-
- uses: actions/checkout@v1
118+
- uses: actions/checkout@v2
119+
with:
120+
fetch-depth: 0
111121
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
112122
- run: script/build-git "$HOME/git"
113123
- run: script/cibuild
114124
build-docker:
115125
name: Build Linux packages
116126
runs-on: ubuntu-20.04
117127
steps:
118-
- uses: actions/checkout@v1
128+
- uses: actions/checkout@v2
129+
with:
130+
fetch-depth: 0
119131
- uses: actions/setup-ruby@v1
120132
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
121133
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
@@ -128,7 +140,9 @@ jobs:
128140
arch: [arm64]
129141
container: [debian_11]
130142
steps:
131-
- uses: actions/checkout@v1
143+
- uses: actions/checkout@v2
144+
with:
145+
fetch-depth: 0
132146
- uses: actions/setup-ruby@v1
133147
- run: |
134148
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
matrix:
1212
go: ['1.17.x']
1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
1517
- uses: actions/setup-ruby@v1
1618
- uses: actions/setup-go@v2
1719
with:
@@ -56,7 +58,9 @@ jobs:
5658
matrix:
5759
go: ['1.17.x']
5860
steps:
59-
- uses: actions/checkout@v1
61+
- uses: actions/checkout@v2
62+
with:
63+
fetch-depth: 0
6064
- uses: actions/setup-ruby@v1
6165
- uses: actions/setup-go@v2
6266
with:
@@ -90,7 +94,9 @@ jobs:
9094
matrix:
9195
go: ['1.17.x']
9296
steps:
93-
- uses: actions/checkout@v1
97+
- uses: actions/checkout@v2
98+
with:
99+
fetch-depth: 0
94100
- uses: actions/setup-ruby@v1
95101
- uses: actions/setup-go@v2
96102
with:
@@ -116,7 +122,9 @@ jobs:
116122
name: Build Linux Packages
117123
runs-on: ubuntu-20.04
118124
steps:
119-
- uses: actions/checkout@v1
125+
- uses: actions/checkout@v2
126+
with:
127+
fetch-depth: 0
120128
- uses: actions/setup-ruby@v1
121129
- run: gem install packagecloud-ruby
122130
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
@@ -133,7 +141,9 @@ jobs:
133141
matrix:
134142
arch: [arm64]
135143
container: [debian_11]
136-
- uses: actions/checkout@v1
144+
- uses: actions/checkout@v2
145+
with:
146+
fetch-depth: 0
137147
- uses: actions/setup-ruby@v1
138148
- run: |
139149
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json

0 commit comments

Comments
 (0)