This repository was archived by the owner on Jan 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515 steps :
1616 - name : Check out code
1717 uses : actions/checkout@v2
18- - name : Unshallow
19- run : git fetch --prune --unshallow
18+ - name : Fetch tags
19+ run : git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
2020 - name : Set up Go
2121 uses : actions/setup-go@v2
2222 with :
Original file line number Diff line number Diff line change 1313 steps :
1414 - name : Check out code
1515 uses : actions/checkout@v2
16- - name : Unshallow
17- run : git fetch --prune --unshallow
16+ - name : Fetch tags
17+ run : git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
1818 - name : Verify Header
1919 uses : talos-systems/conform@v0.1.0-alpha.19
2020 - name : Set up Go
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ GOBIN=$(shell go env GOBIN)
1515endif
1616
1717# Collect version information
18- VERSION ?= $(shell git ls-remote --tags origin 'v* ' | tail -1 | awk -F/ '{ print $$3 }') -next
18+ VERSION ?= $(shell git ls-remote --tags --refs origin 'v* ' | awk -F/ '{ print $$3 }' | tail -1 ) -next
1919BUILD_METADATA ?=
2020GIT_COMMIT ?= $(shell git rev-parse HEAD)
2121
You can’t perform that action at this time.
0 commit comments