Skip to content

Commit 0085508

Browse files
committed
Use body_path
1 parent 3727904 commit 0085508

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
tags: '*'
5+
tags: '[0-9]+.[0-9]+.[0-9]+'
66

77
jobs:
88
build:
@@ -16,10 +16,8 @@ jobs:
1616
wget https://api.github.com/repos/HackingGate/mpvx/releases\?per_page\=1 -O releases.json
1717
cat releases.json | jq
1818
LATEST_TAG=`cat releases.json | jq -r '.[0].tag_name'`
19-
NEXT_TAG=`echo "${GITHUB_REF}" | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+'`
20-
RELEASE_NOTE=`git log --pretty="%h - %s" ${LATEST_TAG}..${NEXT_TAG}`
21-
echo ${RELEASE_NOTE}
22-
echo "RELEASE_NOTE=${RELEASE_NOTE}" >> $GITHUB_ENV
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
2321
- uses: maxim-lobanov/setup-xcode@v1
2422
with:
2523
xcode-version: latest
@@ -39,7 +37,7 @@ jobs:
3937
with:
4038
tag_name: ${{ github.ref }}
4139
release_name: ${{ github.ref }}
42-
body: ${{ env.RELEASE_NOTE }}
40+
body_path: release_note.txt
4341
- name: Upload Release Asset
4442
id: upload-release-asset
4543
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)