Fix release body formatting by appending release name and adjusting commit hash inclusion

This commit is contained in:
XargonWan 2025-01-10 10:19:56 +09:00
parent 280593ed09
commit 5a7b3d3ec5

View file

@ -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