Skip to content

Commit daf06b4

Browse files
committed
Fix release info
1 parent ae76c5b commit daf06b4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ jobs:
7979
ref: ${{ github.event.workflow_run.head_branch }}
8080

8181
- name: Write release info
82-
run: awk 'BEGIN {p = 0} {a = 0 }; /^v\d*.\d*.\d*./ { p += 1; a = 1}; p + a == 1 { print } ' CHANGELOG.md | sed -e '1,1d' | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' > release_info.txt
82+
run: |
83+
awk 'BEGIN {p = 0} {a = 0 }; /^v\d*.\d*.\d*./ { p += 1; a = 1}; p + a == 1 { print } ' CHANGELOG.md | sed -e '1,1d' | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' > release_info.txt
84+
echo "" >> release_info.txt
85+
awk '/CONTRIBUTOR SECTION/{f=1; c=0} f' CHANGELOG.md >> release_info.txt
8386
8487
- name: Release
8588
uses: actions/create-release@v1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ v0.0.1
159159

160160
Initial release.
161161

162+
[contributors]: <> (CONTRIBUTOR SECTION)
162163
[nwinner]: https://github.com/nwinner
163164
[jageo]: https://github.com/JaGeo
164165
[zhuoying]: https://github.com/Zhuoying

0 commit comments

Comments
 (0)