Skip to content

Commit

Permalink
ci(Release Build): Use correct syntax in getting the version
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube authored Jan 22, 2024
1 parent 8595099 commit f38a593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f38a593

Please sign in to comment.