File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ jobs:
13
13
fetch-depth : 0
14
14
- name : Generate Release Note
15
15
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
17
17
cat releases.json | jq
18
18
LATEST_TAG=`cat releases.json | jq -r '.[0].tag_name'`
19
19
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
21
22
- uses : maxim-lobanov/setup-xcode@v1
22
23
with :
23
24
xcode-version : latest
37
38
with :
38
39
tag_name : ${{ github.ref }}
39
40
release_name : ${{ github.ref }}
40
- body_path : release_note.txt
41
+ body_path : release_note.md
41
42
- name : Upload Release Asset
42
43
id : upload-release-asset
43
44
uses : actions/upload-release-asset@v1
You can’t perform that action at this time.
0 commit comments