From 5a7b3d3ec5c9e2dbe3ca4be60e16d6302f5d9fa1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 10 Jan 2025 10:19:56 +0900 Subject: [PATCH] Fix release body formatting by appending release name and adjusting commit hash inclusion --- .github/workflows/fetch-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch-release.yml b/.github/workflows/fetch-release.yml index 02a349a..643a3ed 100644 --- a/.github/workflows/fetch-release.yml +++ b/.github/workflows/fetch-release.yml @@ -26,7 +26,6 @@ jobs: run: | latest_release=$(curl -s https://api.github.com/repos/Vita3K/Vita3K/releases/latest) tag_name="$(echo $latest_release | jq -r .tag_name)" - release_body="$(echo $latest_release | jq -r .body)" # fetching assets mkdir -p artifacts @@ -42,7 +41,8 @@ jobs: commit_hash="$(echo $latest_release | jq -r .body | grep -oP 'Corresponding commit: \K[0-9a-f]{40}')" echo "commit_hash=$commit_hash" - release_body+="\n\nCorresponding commit: [$commit_hash](https://github.com/Vita3K/Vita3K/commit/$commit_hash)" + release_body+="Corresponding commit: [$commit_hash](https://github.com/Vita3K/Vita3K/commit/$commit_hash)\n\n" + release_body+="$release_name" echo "release_body=$release_body" echo "tag_name=$tag_name" >> $GITHUB_ENV