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:
parent
a95ad430a3
commit
2c11b6fc98
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user