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