From 7c150e6aa436396a3159d1f7005a42fd09441c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Tue, 20 Feb 2024 19:05:08 +0000 Subject: [PATCH 1/2] Fix bump type --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8ba00a858..9e4f9e07e 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 From 6e8820c6cc3332646c4fd4ff5ade965650057b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Tue, 20 Feb 2024 19:18:40 +0000 Subject: [PATCH 2/2] Fix copy app version to pubspec --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9e4f9e07e..a32eff1c9 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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: