Skip to content

Commit 288c30f

Browse files
committed
Lint markdown of release note
1 parent c744758 commit 288c30f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ jobs:
3030
LATEST_TAG=`cat releases.json | jq -r '.[0].tag_name'`
3131
if [[ $GITHUB_REF == refs/tags/* ]]; then
3232
NEXT_TAG=`echo ${GITHUB_REF} | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+'`
33-
echo "## Changes from ${LATEST_TAG} to ${NEXT_TAG}" | tee release_note.md
34-
git log --pretty="%h - %s" ${LATEST_TAG}..${NEXT_TAG} | tee -a release_note.md
33+
echo "# Release ${NEXT_TAG}" > release_note.md
34+
echo "" >> release_note.md
35+
echo "## Changes from \`${LATEST_TAG}\` to \`${NEXT_TAG}\`" >> release_note.md
36+
echo "" >> release_note.md
37+
git log --pretty="* %h - %s" ${LATEST_TAG}..${NEXT_TAG} | tee -a release_note.md
3538
else
3639
HEAD_HASH=`git rev-parse --short HEAD`
37-
echo "## Changes from ${LATEST_TAG} to ${HEAD_HASH}" | tee release_note.md
38-
git log --pretty="%h - %s" ${LATEST_TAG}..HEAD | tee -a release_note.md
40+
echo "# Development Build" > release_note.md
41+
echo "" >> release_note.md
42+
echo "## Changes from \`${LATEST_TAG}\` to \`${HEAD_HASH}\`" >> release_note.md
43+
echo "" >> release_note.md
44+
git log --pretty="* %h - %s" ${LATEST_TAG}..HEAD | tee -a release_note.md
3945
fi
4046
- name: Setup Xcode
4147
uses: maxim-lobanov/setup-xcode@v1

0 commit comments

Comments
 (0)