From e91e4f6b79fec6771f36cfe19345fafaefda0bd4 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Wed, 6 Mar 2024 18:30:52 +0100 Subject: [PATCH] fix: bug in versioned draft --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cc8243c..bd3ba4c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,7 +88,8 @@ jobs: - name: update draft version if: ${{ inputs.upload-artifact && inputs.tag-name == 'draft' }} run: | - python -c "import re; content = open('pubspec.yaml').read(); content = re.sub(r'(version: [0-9.]*\+)', r'\1{}'.format('${{ needs.test.outputs.draftBuildCode }}'), content, count=1); open('pubspec.yaml', 'w').write(content)" + python -c "import re; content = open('pubspec.yaml').read(); content = re.sub(r'version: [^\+]*', f'version: ${{ needs.test.outputs.draftBuildCode }}', content, count=1); open('pubspec.yaml', 'w').write(content)" + - name: Setup Flutter uses: subosito/flutter-action@v2 with: