From 9cd7060a1a7e2962e924974e65c6a62b7bf71e4a Mon Sep 17 00:00:00 2001 From: Dennis Staal Date: Tue, 6 Feb 2024 10:58:09 +0100 Subject: [PATCH] Move tag to ldflags --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d64133c..b51d0c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,6 @@ jobs: with: fetch-depth: '0' - - name: Get latest tag - run: LATEST_TAG=$(git describe --tags) - - name: Build release uses: wangyoucao577/go-release-action@v1.46 with: @@ -32,4 +29,4 @@ jobs: binary_name: "james" extra_files: LICENSE README.md sha256sum: true - ldflags: "-X main.Build=$LATEST_TAG" + ldflags: "-X main.Build=$(git describe --tags)"