mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-04-13 16:19:33 +03:00
Escape 'Get commit message' step output in 'Publish' workflow (#4707)
* Escape 'Get commit message' step output in 'Publish' workflow
This commit is contained in:
parent
cf0615bc51
commit
9817cc04c7
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -47,9 +47,10 @@ jobs:
|
|||||||
- name: Get release title and body
|
- name: Get release title and body
|
||||||
id: release
|
id: release
|
||||||
run: |
|
run: |
|
||||||
RELEASE_TITLE=$(echo '${{ steps.commit.outputs.git-message }}' | head -n 1)
|
COMMIT_MSG="$(echo "${{ steps.commit.outputs.git-message }}")"
|
||||||
|
RELEASE_TITLE="$(echo "$COMMIT_MSG" | head -n 1)"
|
||||||
echo "::set-output name=title::$RELEASE_TITLE"
|
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="$(echo "$COMMIT_MSG" | tail -n +3)"
|
||||||
echo "::set-output name=body::$RELEASE_BODY"
|
echo "::set-output name=body::$RELEASE_BODY"
|
||||||
- name: Get release version
|
- name: Get release version
|
||||||
id: get-version
|
id: get-version
|
||||||
|
Loading…
Reference in New Issue
Block a user