mirror of
https://github.com/RetroDECK/Vita3K-bin.git
synced 2025-01-19 12:45:38 +00:00
Fix regex pattern for release name extraction in fetch-release workflow
This commit is contained in:
parent
7947f874c1
commit
12be5d65af
3
.github/workflows/fetch-release.yml
vendored
3
.github/workflows/fetch-release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue