Skip to content

Commit 9724a1d

Browse files
committed
Add buildversion info
1 parent b6a4f3c commit 9724a1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30+
- name: Set BUILDVERSION env var
31+
id: buildversion
32+
run: echo "BUILDVERSION=$(git describe --tags --always)" >> $GITHUB_ENV
33+
3034
- name: Setup Go env
3135
uses: actions/setup-go@v5
3236
with:
@@ -47,3 +51,4 @@ jobs:
4751
env:
4852
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4953
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
54+
BUILDVERSION: ${{ env.BUILDVERSION }}

0 commit comments

Comments
 (0)