From b0fd0812c25481a9e7029adaa1e8b896a5649a76 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Tue, 30 Apr 2024 11:35:43 +0800 Subject: [PATCH] [Release]Update getReleaseInfo.sh --- .github/workflows/getReleaseInfo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/getReleaseInfo.sh b/.github/workflows/getReleaseInfo.sh index d4969e0..a512d26 100644 --- a/.github/workflows/getReleaseInfo.sh +++ b/.github/workflows/getReleaseInfo.sh @@ -1,6 +1,7 @@ version=$(grep version Cargo.toml -m 1 | cut -d'=' -f2 | tr -d "\r" | tr -d ' ' | tr -d '"' | tr -d "'") -echo $version +echo "version=$version">>$GITHUB_ENV release_info=release.md +echo "release_info=$release_info">>$GITHUB_ENV echo "## Changes" > $release_info number=$(git log --oneline $(git rev-parse `git describe --tags --abbrev=0`)..HEAD | wc -l) echo "$(git log --pretty='> [%h] %s' -$number)" >> $release_info