From 0667f40a16c2b5d92ffe348844000fa58150873c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Latorre=20Asensio?= Date: Wed, 14 May 2025 16:57:23 +0200 Subject: [PATCH] ANDROID-16118 Escape release notes to avoid problems with multiline --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f5b240..5f1fdd2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,14 @@ jobs: ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepository" + - name: Prepare release notes + run: | + RELEASE_BODY=$(jq -Rs . <<'EOF' + ${{ github.event.release.body }} + EOF + ) + echo "FORMATTED_BODY=${RELEASE_BODY}" >> $GITHUB_ENV + - name: Send Teams notification uses: fjogeleit/http-request-action@v1.16.4 with: @@ -75,7 +83,7 @@ jobs: }, { "type": "TextBlock", - "text": "${{ github.event.release.body }}", + "text": ${{ env.FORMATTED_BODY }}, "wrap": true }, {