Skip to content

Commit fe0c22b

Browse files
committed
Fix git unshallow in CI builds
1 parent 7d53cc1 commit fe0c22b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- run: git fetch --prune --unshallow
16+
with:
17+
fetch-depth: 0
1718
- uses: actions/cache@v2
1819
with:
1920
path: ~/go/pkg/mod

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- run: git fetch --prune --unshallow
13+
with:
14+
fetch-depth: 0
1415
- uses: actions/setup-go@v2
1516
with:
1617
go-version: 1.14

0 commit comments

Comments
 (0)