From 62028f7dbd42c2cdab415c1e9baab94de00ff087 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 27 Mar 2024 14:25:29 +0800 Subject: [PATCH] test:version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f5a3e52eeb..8f69862a730 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n '/## $env.version/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## ${env.version}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV - name: Create Release id: create_release