diff --git a/.github/workflows/flathub_push_cooker.yml b/.github/workflows/flathub_push_cooker.yml index 38fd13ba..e61702d2 100644 --- a/.github/workflows/flathub_push_cooker.yml +++ b/.github/workflows/flathub_push_cooker.yml @@ -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