From 6a79c2fa4c26fd44a15f3bbdace2c86965c8f749 Mon Sep 17 00:00:00 2001 From: FiorenMas <102145692+FiorenMas@users.noreply.github.com> Date: Wed, 12 Apr 2023 00:34:23 +0700 Subject: [PATCH] Update patch.yml --- .github/workflows/patch.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index dfe5474..132c24e 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -25,32 +25,16 @@ jobs: | cut -d : -f 2,3 \ | tr -d \" \ | wget -qi - - YT-RVVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json) + RVVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json) rm -rf patches.json - | + curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \ | grep "browser_download_url.*json" \ | cut -d : -f 2,3 \ | tr -d \" \ | wget -qi - - YT-RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json) + RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json) rm -rf patches.json - | - curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \ - | grep "browser_download_url.*json" \ - | cut -d : -f 2,3 \ - | tr -d \" \ - | wget -qi - - YTM-RVVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json) - rm -rf patches.json - | - curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \ - | grep "browser_download_url.*json" \ - | cut -d : -f 2,3 \ - | tr -d \" \ - | wget -qi - - YTM-RVEVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json) - rm -rf patches.json echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt echo "INFO-YT-RV=Youtube-Revanced-v${YT-RVVERSION}" >> $GITHUB_ENV echo "INFO-YT-RVE=Youtube-Revanced Extended-v${YT-RVEVERSION}" >> $GITHUB_ENV