Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm committed Mar 2, 2024
1 parent 1c16024 commit e1cb4d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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" .

0 comments on commit e1cb4d7

Please sign in to comment.