Skip to content

Commit

Permalink
fix(Release CI): truncate the "v" from version
Browse files Browse the repository at this point in the history
ci: cleanup

force push soon:tm:
  • Loading branch information
validcube committed Jan 22, 2024
1 parent 6fd740f commit 8595099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-build.yml
Expand Up @@ -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
Expand Down

0 comments on commit 8595099

Please sign in to comment.