File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- tags : ' * '
5
+ tags : ' [0-9]+.[0-9]+.[0-9]+ '
6
6
7
7
jobs :
8
8
build :
16
16
wget https://api.github.com/repos/HackingGate/mpvx/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
- 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
23
21
- uses : maxim-lobanov/setup-xcode@v1
24
22
with :
25
23
xcode-version : latest
39
37
with :
40
38
tag_name : ${{ github.ref }}
41
39
release_name : ${{ github.ref }}
42
- body : ${{ env.RELEASE_NOTE }}
40
+ body_path : release_note.txt
43
41
- name : Upload Release Asset
44
42
id : upload-release-asset
45
43
uses : actions/upload-release-asset@v1
You can’t perform that action at this time.
0 commit comments