Skip to content

Commit

Permalink
Refactor with github.ref_name (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Jan 4, 2023
1 parent b4d08d2 commit 3c138fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
go-version: 1.19.4
cache: true
- run: go build -ldflags "-X main.version=${GITHUB_REF##*/}"
- run: go build -ldflags '-X main.version=${{ github.ref_name }}'
- uses: int128/go-actions/release@v1
with:
binary: ghcp

0 comments on commit 3c138fa

Please sign in to comment.