From e7d32f00e2a58f3ff98d7ae8cbbf64138f27719b Mon Sep 17 00:00:00 2001 From: Christopher Lowenthal Date: Tue, 1 Nov 2022 12:19:42 -0400 Subject: [PATCH] pulls commit from github context for ldflags --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98a2acbd6..29f396f3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,11 +21,9 @@ jobs: - id: version run: echo "version=$(.github/workflows/version.sh)" >> $GITHUB_OUTPUT - id: tag - run: echo "tag=v${{ steps.version.outputs.version}}-community" >> $GITHUB_OUTPUT - - id: commit - run: echo "commit=" + run: echo "tag=v${{ steps.version.outputs.version }}-community" >> $GITHUB_OUTPUT - id: ldflags - run: echo "ldflags=-X github.com/featurebasedb/featurebase/v3.Version=${{steps.tag.output.tag}} -X github.com/featurebasedb/featurebase/v3.Commit=${{steps.commit.outputs.commit}}" >> $GITHUB_OUTPUT + run: echo "ldflags=-X github.com/featurebasedb/featurebase/v3.Version=${{ steps.tag.outputs.tag }} -X github.com/featurebasedb/featurebase/v3.Commit=${{ github.sha }}" >> $GITHUB_OUTPUT test-meta: runs-on: ubuntu-latest