mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Fixed flathub_push tag name
This commit is contained in:
parent
e65e0d04f3
commit
b175a8aaa1
6
.github/workflows/flathub_push_cooker.yml
vendored
6
.github/workflows/flathub_push_cooker.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue