Skip to content

Commit

Permalink
Use short-sha for go version in continuous
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Jul 20, 2024
1 parent f9c8c86 commit d6ecd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
apt-get install -y libbtrfs-dev libdevmapper-dev libgpgme-dev pkg-config build-essential libdpkg-dev
- name: Build
run: go build -o abrootv2 -ldflags="-X 'main.Version=continuous'"
run: go build -o abrootv2 -ldflags="-X 'main.Version=$(git rev-parse --short ${{ github.sha }})'"

- name: Test
run: go test -v ./tests/...
Expand Down

0 comments on commit d6ecd6b

Please sign in to comment.