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 }, {