diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 588a86915e..2e3918b492 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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