Skip to content

Commit e10c5e8

Browse files
committed
defined application version in GA
1 parent 2959ef2 commit e10c5e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/releases.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- 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}
1820
- uses: ncipollo/release-action@v1
1921
with:
2022
tag: ${{ vars.GITHUB_REF_NAME }}
@@ -26,4 +28,4 @@ jobs:
2628
goarch: amd64
2729
project_path: "./cmd/kndp"
2830
binary_name: "kndp"
29-
ldflags: -X 'main.Version=${{ vars.GITHUB_REF_NAME }}'
31+
ldflags: -X "main.Version=${{ env.APP_VERSION }}"

0 commit comments

Comments
 (0)