diff --git a/.github/workflows/build_go.yaml b/.github/workflows/build_go.yaml index ab6503b..5bc1220 100644 --- a/.github/workflows/build_go.yaml +++ b/.github/workflows/build_go.yaml @@ -41,7 +41,7 @@ jobs: run: echo ${{ steps.vars.outputs.sha_short }} - name: Build - run: go build -ldflags "-X main.sha=${{steps.vars.outputs.sha_short}}" -v ./... + run: go build -ldflags "-X main.SHA1=${{steps.vars.outputs.sha_short}}" -v ./... - name: Test run: go test -v ./... diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..f25f465 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# go build -ldflags "-X main.SHA1=${{steps.vars.outputs.sha_short}}" -v ./... +go build -ldflags "-X main.SHA1=$sha_short" . \ No newline at end of file