We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2959ef2 commit e10c5e8Copy full SHA for e10c5e8
.github/workflows/releases.yaml
@@ -15,6 +15,8 @@ jobs:
15
runs-on: ubuntu-latest
16
steps:
17
- uses: actions/checkout@v4
18
+ - name: Set APP_VERSION env
19
+ run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
20
- uses: ncipollo/release-action@v1
21
with:
22
tag: ${{ vars.GITHUB_REF_NAME }}
@@ -26,4 +28,4 @@ jobs:
26
28
goarch: amd64
27
29
project_path: "./cmd/kndp"
30
binary_name: "kndp"
- ldflags: -X 'main.Version=${{ vars.GITHUB_REF_NAME }}'
31
+ ldflags: -X "main.Version=${{ env.APP_VERSION }}"
0 commit comments