From 65194e6aaf69116250f3da429f9b50d8b792e596 Mon Sep 17 00:00:00 2001 From: Ellet Date: Mon, 20 May 2024 03:24:10 +0300 Subject: [PATCH] ci: attemp 4 to fix styling loss in Github release notes --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5eb79eca..c7951d97 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -65,7 +65,7 @@ jobs: - name: ✅ Validate extracted version format (should be pubspec.yaml valid version) run: | version=${{ steps.extract_version.outputs.VERSION }} - if [[ ! $version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then + if [[ ! $version =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "❌ Invalid version format: $version. The version must be a valid pubspec.yaml version" exit 1 fi @@ -93,7 +93,7 @@ jobs: # TODO: There is a bug that cause styling loss: https://github.com/singerdmx/flutter-quill/issues/1880 - name: 📝 Update version and CHANGELOG for all the packages - run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }} ${{ toJson(fromJson(steps.fetch-release-notes-request.outputs.response).body) }} + run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }} '${{ fromJson(steps.fetch-release-notes-request.outputs.response).body }}' - name: 💾 Commit updated version and CHANGELOG id: auto-commit-action