ci(Release Build): Use correct syntax in getting the version

This commit is contained in:
Pun Butrach 2024-01-22 18:34:35 +07:00 committed by GitHub
parent 85950991ab
commit f38a593434
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ jobs:
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.VERSION }}+$VERSIONCODE" pubspec.yaml
sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml
- name: Set up Flutter
run: flutter pub get