Skip to content

Commit a90c7e7

Browse files
committed
ci: derive release commit from GITHUB_SHA (container lacks git)
1 parent b0eee50 commit a90c7e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: |
4848
mkdir -p dist
4949
VERSION="${GITHUB_REF_NAME}"
50-
COMMIT="$(git rev-parse --short HEAD)"
50+
COMMIT="${GITHUB_SHA:0:7}"
5151
DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
5252
LDFLAGS="-s -w -X github.com/mirkobrombin/goup/internal/cli.Version=${VERSION} -X github.com/mirkobrombin/goup/internal/cli.Commit=${COMMIT} -X github.com/mirkobrombin/goup/internal/cli.Date=${DATE}"
5353
OUT="dist/goup-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}"

0 commit comments

Comments
 (0)