diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c77365d0407..8e3fa6a9e0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n '/## ${{ env.version }}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## v'${version}'/,/## v[0-9]\.[0-9]\.[0-9]\|^$/p' CHANGELOG.md)" >> $GITHUB_ENV - name: Print Changelog id: print_changelog diff --git a/CHANGELOG.md b/CHANGELOG.md index 765f801b3e1..987f76dc2a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -108,6 +108,6 @@ ### 2024/3/28 -## -test +#### -test -test