Skip to content

Commit 64d7ddf

Browse files
committed
Update deployment.yml
1 parent 297f2f9 commit 64d7ddf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deployment.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,18 @@ jobs:
155155
working-directory: code
156156

157157
# all
158+
- name: Parse the release tag
159+
id: parse-release-tag
160+
run: | # remove the leading "v"
161+
VERSION=${{ github.event.release.tag_name }}
162+
echo "::set-output name=version::${VERSION#v}"
163+
working-directory: code
158164
- name: Set the app version
159165
uses: microsoft/variable-substitution@6287962da9e5b6e68778dc51e840caa03ca84495 # v1
160166
with:
161167
files: 'code/pubspec.yaml'
162168
env:
163-
version: ${{ github.event.release.tag_name }}
169+
version: ${{ steps.parse-release-tag.outputs.version }}
164170

165171
# apk
166172
- name: Build an Android APK file

0 commit comments

Comments
 (0)