Skip to content

Commit d987bdd

Browse files
committed
Use markdown
1 parent 0085508 commit d987bdd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
fetch-depth: 0
1414
- name: Generate Release Note
1515
run: |
16-
wget https://api.github.com/repos/HackingGate/mpvx/releases\?per_page\=1 -O releases.json
16+
wget ${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases\?per_page\=1 -O releases.json
1717
cat releases.json | jq
1818
LATEST_TAG=`cat releases.json | jq -r '.[0].tag_name'`
1919
NEXT_TAG=`echo ${GITHUB_REF} | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+'`
20-
git log --pretty="%h - %s" ${LATEST_TAG}..${NEXT_TAG} | tee release_note.txt
20+
echo "## Commits from ${NEXT_TAG} to ${LATEST_TAG}" | tee release_note.md
21+
git log --pretty="%h - %s" ${LATEST_TAG}..${NEXT_TAG} | tee -a release_note.md
2122
- uses: maxim-lobanov/setup-xcode@v1
2223
with:
2324
xcode-version: latest
@@ -37,7 +38,7 @@ jobs:
3738
with:
3839
tag_name: ${{ github.ref }}
3940
release_name: ${{ github.ref }}
40-
body_path: release_note.txt
41+
body_path: release_note.md
4142
- name: Upload Release Asset
4243
id: upload-release-asset
4344
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)