Skip to content

Commit c9cc553

Browse files
authored
fix: fetch-depth of go-releaser workflow (#47)
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
1 parent cf4ff4b commit c9cc553

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/go-releaser.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,24 @@ jobs:
2323
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
2424
2525
- name: Checkout repository
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
27+
with:
28+
fetch-depth: 0
2729

2830
# Cache go build cache, used to speedup go test
2931
- name: Go Build Cache
3032
uses: actions/cache@v2
3133
with:
3234
path: ${{ steps.go-cache-paths.outputs.go-build }}
3335
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
34-
#
36+
3537
# Cache go mod cache, used to speedup builds
3638
- name: Go Mod Cache
3739
uses: actions/cache@v2
3840
with:
3941
path: ${{ steps.go-cache-paths.outputs.go-mod }}
4042
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
43+
4144
# Run goreleaser; this one creates the GH release and pushes the images
4245
- name: Run GoReleaser
4346
id: goreleaser-id

0 commit comments

Comments
 (0)