Skip to content

Commit

Permalink
defined application version in GA
Browse files Browse the repository at this point in the history
  • Loading branch information
evghen1 committed Feb 15, 2024
1 parent 2959ef2 commit e10c5e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set APP_VERSION env
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
- uses: ncipollo/release-action@v1
with:
tag: ${{ vars.GITHUB_REF_NAME }}
Expand All @@ -26,4 +28,4 @@ jobs:
goarch: amd64
project_path: "./cmd/kndp"
binary_name: "kndp"
ldflags: -X 'main.Version=${{ vars.GITHUB_REF_NAME }}'
ldflags: -X "main.Version=${{ env.APP_VERSION }}"

0 comments on commit e10c5e8

Please sign in to comment.