From f023cbb167c8ed0f4d35a2f7a8b86a40bd67184f Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Sun, 9 Jun 2024 18:14:17 +0500 Subject: [PATCH] fix(plugins/github-release): fix publish formatting --- plugins/github-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/github-release.sh b/plugins/github-release.sh index ece9ae9..06912fe 100644 --- a/plugins/github-release.sh +++ b/plugins/github-release.sh @@ -18,9 +18,9 @@ release() { fi if ${PRE_RELEASE_VERSION-}; then - echo "${RELEASE_BODY-}" | gh release create "${NEXT_RELEASE_TAG-}" --title "${NEXT_RELEASE_TAG-}" --prerelease --notes-file - + printf "%b" "${RELEASE_BODY-}" | gh release create "${NEXT_RELEASE_TAG-}" --title "${NEXT_RELEASE_TAG-}" --prerelease --notes-file - else - echo "${RELEASE_BODY-}" | gh release create "${NEXT_RELEASE_TAG-}" --title "${NEXT_RELEASE_TAG-}" --latest --notes-file - + printf "%b" "${RELEASE_BODY-}" | gh release create "${NEXT_RELEASE_TAG-}" --title "${NEXT_RELEASE_TAG-}" --latest --notes-file - fi else log "Skipped GitHub release [${NEXT_RELEASE_TAG}] in DRY-RUN mode."