From 85950991ab7b9c902fede56b8910a98bd24c3838 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Mon, 22 Jan 2024 18:18:20 +0700 Subject: [PATCH] fix(Release CI): truncate the "v" from version ci: cleanup force push soon:tm: --- .github/workflows/release-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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