diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8ba00a858..a32eff1c9 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -61,7 +61,7 @@ jobs: current_environment: staging production_version: ${{ steps.latest-production-version.outputs.latest_version_name }} staging_version: ${{ steps.latest-beta-version.outputs.latest_version_name }} - bump_type: preminor + bump_type: prerelease - name: Bump prod version (from develop) uses: LuisDuarte1/semver-bump-environment@v1.0.0 @@ -91,7 +91,7 @@ jobs: echo "$NEW_VERSION_NAME+$((${{steps.latest-production-version.outputs.latest_version_code}} + 1))" > ${{env.APP_VERSION_PATH}} - name: Copy app version to pubspec - run: cat ${{ env.APP_VERSION_PATH }} | perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+\+\d+)$/$1.()/e' ${{ env.PUBSPEC_PATH }} + run: cat ${{ env.APP_VERSION_PATH }} | tr -d '\n' | perl -i -pe 's/^(version:\s+)(.+)$/$1.()/e' ${{ env.PUBSPEC_PATH }} - uses: stefanzweifel/git-auto-commit-action@v4 with: