Fix regex pattern for release name extraction in fetch-release workflow

This commit is contained in:
XargonWan 2025-01-10 10:01:32 +09:00
parent 7947f874c1
commit 12be5d65af

View file

@ -34,13 +34,14 @@ jobs:
wget -P artifacts $url
done
release_name=$(echo $latest_release | jq -r .body | grep -oP 'Vita3K Build: \d+')
release_name=$(echo $latest_release | jq -r .body | grep -oP 'Vita3K Build \d+')
echo "release_name=$release_name"
commit_hash=$(echo $latest_release | jq -r .body | grep -oP 'corresponding commit \K[0-9a-f]{40}')
if [ -n "$commit_hash" ]; then
release_body=$(echo $latest_release | jq -r .body | sed "s/corresponding commit $commit_hash/corresponding commit https:\/\/github.com\/Vita3K\/Vita3K\/commit\/$commit_hash/")
echo "release_body=$release_body"
fi
echo "tag_name=$tag_name" >> $GITHUB_ENV
echo "release_body=$release_body" >> $GITHUB_ENV
echo "assets=$assets" >> $GITHUB_ENV