chore: fix release notes not using new lines

This commit is contained in:
Alexis Tyler
2021-07-05 16:16:52 +09:30
parent 337aa8cc6b
commit d5f4f07acc

View File

@@ -285,7 +285,7 @@ jobs:
# Get all the commit messages between now and the last non-pre-release tag
RELEASE_NOTES=$(git log "$LAST_RELEASE...HEAD" --pretty=format:"- %s [\`%h\`](http://github.com/$GITHUB_REPOSITORY/commit/%H)" --reverse | sed \$d) \
# Save release notes to a file
echo $RELEASE_NOTES > ${{ github.workspace }}/RELEASE_NOTES.md && \
echo "$RELEASE_NOTES" > ${{ github.workspace }}/RELEASE_NOTES.md && \
# Log release notes
cat ${{ github.workspace }}/RELEASE_NOTES.md