From b175a8aaa1d7e61a3aa9d5652389f5fbac35e06b Mon Sep 17 00:00:00 2001 From: XargonWan <6771419+XargonWan@users.noreply.github.com> Date: Sat, 8 Oct 2022 16:09:15 +0200 Subject: [PATCH] Fixed flathub_push tag name --- .github/workflows/flathub_push_cooker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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