Fixed flathub_push tag name

This commit is contained in:
XargonWan 2022-10-08 16:09:15 +02:00
parent e65e0d04f3
commit b175a8aaa1

View file

@ -59,12 +59,14 @@ jobs:
# manipulating manifest
mv flathub.yml net.retrodeck.retrodeck.yml
# latest release name
version=$(\
curl -sL \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TRIGGER_BUILD_TOKEN }}" \
https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases \
| jq .[0].tag_name \
| tr -d \" \
)
#sha=$(curl -sL https://github.com/XargonWan/RetroDECK-cooker/releases/download/$version/RetroDECK-Artifact.sha)
@ -73,8 +75,8 @@ jobs:
#echo $sha
echo $version
sed -i 's#"url: https://github.com/XargonWan/RetroDECK-cooker/releases/download/__VERSION__/RetroDECK-Artifact.tar.gz"#"url: https://github.com/XargonWan/RetroDECK-cooker/releases/download/$version/RetroDECK-Artifact.tar.gz"#g' net.retrodeck.retrodeck.yml
sed -i 's#"sha256: __SHA__"#"sha256: $sha"#g' net.retrodeck.retrodeck.yml
sed -i "s#__VERSION__#$version#g" net.retrodeck.retrodeck.yml
sed -i "s#__SHA__#$sha#g" net.retrodeck.retrodeck.yml
echo -e "Resulting manifest:\n"
cat net.retrodeck.retrodeck.yml