1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-26 01:13:41 +02:00

Fix the release body of GitHub releases created by publish.yml (#6071)

This commit is contained in:
Eric Cornelissen 2021-07-03 11:34:48 +02:00 committed by GitHub
parent a95ad430a3
commit 2c11b6fc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,9 @@ jobs:
RELEASE_TITLE=$(echo "${{ steps.commit.outputs.git-message }}" | head -n 1)
echo "::set-output name=title::$RELEASE_TITLE"
RELEASE_BODY=$(echo "${{ steps.commit.outputs.git-message }}" | tail -n $(expr $(echo "${{ steps.commit.outputs.git-message }}" | wc -l) - 1))
RELEASE_BODY="${RELEASE_BODY//'%'/'%25'}"
RELEASE_BODY="${RELEASE_BODY//$'\n'/'%0A'}"
RELEASE_BODY="${RELEASE_BODY//$'\r'/'%0D'}"
echo "::set-output name=body::$RELEASE_BODY"
- name: Get release version
id: get-version