diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 58f55d4..a3d5ff2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -20,7 +20,7 @@ jobs: - name: Get version from lib/dev_config.dart id: set-version run: | - echo version=$(grep "version:" pubspec.yaml | head -1 | cut -d ':' -f 2 | tr -d ' ') >> $GITHUB_OUTPUT + echo version=$(grep "version:" pubspec.yaml | head -1 | cut -d ':' -f 2 | tr -d ' ' | cut -d '+' -f 1) >> $GITHUB_OUTPUT # - name: Extract version from pubspec.yaml # id: extract_version diff --git a/do_builds.sh b/do_builds.sh index 3601b30..2bbcd74 100755 --- a/do_builds.sh +++ b/do_builds.sh @@ -23,7 +23,7 @@ for arg in "$@"; do esac done -appver=$(grep "version:" pubspec.yaml | head -1 | cut -d ':' -f 2 | tr -d ' ') +appver=$(grep "version:" pubspec.yaml | head -1 | cut -d ':' -f 2 | tr -d ' ' | cut -d '+' -f 1) echo echo "Building app version ${appver}..." echo