Skip to content

Commit d64e1fc

Browse files
authored
Merge pull request #4 from Guovin/dev
chore:changelog for release
2 parents 5b41576 + 5d26578 commit d64e1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Get changelog
7777
id: get_changelog
7878
run: |
79-
echo "changelog=$(awk -v RS='---' -v version=${{ env.version }} '$0 ~ version {sub(/## /, ""); print; exit}' ./CHANGELOG.md)" >> $GITHUB_ENV
79+
echo "changelog=$(grep -A1 -x "## ${version}" CHANGELOG.md | sed -n '2p' | sed 's/^[- ]*//')" >> $GITHUB_ENV
8080
8181
- name: Create Release
8282
id: create_release

0 commit comments

Comments
 (0)