From adb061e29d940a4f9688098a8065b1413d016154 Mon Sep 17 00:00:00 2001 From: Ellet Date: Mon, 20 May 2024 03:19:16 +0300 Subject: [PATCH] ci: attemp 3 to fix styling loss in Github release notes --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 20d03685..5eb79eca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -85,14 +85,15 @@ jobs: - name: ⚠️ Validate release notes response run: | - if [[ -z "$(echo '${{ steps.fetch-release-notes-request.outputs }}' | jq -r '.body')" ]]; then + releaseNotesResponse="${{ fromJson(steps.fetch-release-notes-request.outputs.response) }}" + if [[ -z "$releaseNotesResponse" || "$releaseNotesResponse" == "null" ]]; then echo "Error: Release notes response is empty." exit 1 fi # 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 }} '${{ fromJson(steps.fetch-release-notes-request.outputs.response).body }}' + run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }} ${{ toJson(fromJson(steps.fetch-release-notes-request.outputs.response).body) }} - name: 💾 Commit updated version and CHANGELOG id: auto-commit-action