From c3bf442cee2f6058e9a2f730809aa8250d5e3a74 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sat, 23 Nov 2024 15:22:10 -0500 Subject: [PATCH] feat(golang-rewrite): correct asdf-version workflow step to produce version as output --- .github/workflows/release-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 1df1ba8..232729c 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -101,7 +101,7 @@ jobs: - name: Compute asdf version id: asdf-version shell: bash - run: './scripts/asdf-version' + run: 'echo "name=version::$(./scripts/asdf-version)"' - name: Build Go binaries uses: wangyoucao577/go-release-action@v1 with: @@ -112,4 +112,4 @@ jobs: binary_name: "asdf" release_tag: ${{ needs.generate-release-tag.outputs.tag }} release_name: ${{ needs.generate-release-tag.outputs.tag }} - ldflags: '-s -X main.version=${{ steps.asdf-version.outputs.stdout }}' + ldflags: '-s -X main.version=${{ steps.asdf-version.outputs.version }}'