fix(Release CI): truncate the "v" from version

ci: cleanup

force push soon™️
This commit is contained in:
Pun Butrach 2024-01-22 18:18:20 +07:00 committed by validcube
parent 6fd740f8c0
commit 85950991ab
No known key found for this signature in database
GPG key ID: DBA94253E1D3F267

View file

@ -43,8 +43,9 @@ jobs:
- name: Bump pubspec version
run: |
IFS='.' read -r -a nums <<< "${RELEASE_VERSION/-dev/}.0"
VERSION=$(echo "${RELEASE_VERSION}" | sed 's/v//')
VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))
sed -i "/^version/c\\version: ${{ env.RELEASE_VERSION }}+$VERSIONCODE" pubspec.yaml
sed -i "/^version/c\\version: ${{ env.VERSION }}+$VERSIONCODE" pubspec.yaml
- name: Set up Flutter
run: flutter pub get