fix: fetch-depth of go-releaser workflow (#47)

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
This commit is contained in:
Matthias Riegler 2023-02-16 20:22:54 +01:00 committed by GitHub
parent cf4ff4b950
commit c9cc5534fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,9 @@ jobs:
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
# Cache go build cache, used to speedup go test
- name: Go Build Cache
@ -31,13 +33,14 @@ jobs:
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
#
# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
# Run goreleaser; this one creates the GH release and pushes the images
- name: Run GoReleaser
id: goreleaser-id