fix(android): correct version number trimming

This commit is contained in:
Jan De Dobbeleer 2023-07-14 13:27:04 +02:00 committed by Jan De Dobbeleer
parent 7d5c731d2f
commit 2bfd08ec57

View file

@ -12,7 +12,8 @@ jobs:
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Build
run: |
VERSION="${${{ github.event.release.name }}:1}"
VERSION="${{ github.event.release.name }}"
VERSION="${VERSION:1}"
echo "Building version ${VERSION}"
cd src
go build -o dist/posh-android-arm -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=${VERSION}' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=$(date)'"