From 17d6f795a80acfaab9765a0058532fc01755f221 Mon Sep 17 00:00:00 2001 From: Justin Shih Date: Fri, 5 Aug 2022 13:53:42 -0700 Subject: [PATCH] fix: fix release yml --- .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 f3c3cf455..25c252efc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Get Version Number id: get-version-number run: | - version_number=$(echo "${{github.event.head_commit.message}}" | sed -e "s/^chore(release): v//" -e "s/ (#[[:digit:]]\+)$//") + version_number=$(echo "${{github.event.head_commit.message}}" | sed -n "s/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p") echo "::set-output name=version_number::$version_number" - name: Get Release Description run: npx -y changelog-parser CHANGELOG.md | jq -r '.versions[0].body' > release_description.md