Update patch.yml

This commit is contained in:
FiorenMas
2023-04-12 00:37:14 +07:00
parent 6a79c2fa4c
commit e38bead845

View File

@@ -25,7 +25,7 @@ jobs:
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
RVVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
YTRVVERSION=$(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 \
@@ -33,13 +33,29 @@ jobs:
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
YTRVEVERSION=$(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 -
YTMRVVERSION=$(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 -
YTMRVEVERSION=$(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
echo "INFO-YTM-RV=Youtube-Music-Revanced-v${YTM-RVVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RVE=Youtube-Music-Revanced Extended-v${YTM-RVEVERSION}" >> $GITHUB_ENV
echo "INFO-YT-RV=Youtube-Revanced-v${YTRVVERSION}" >> $GITHUB_ENV
echo "INFO-YT-RVE=Youtube-Revanced Extended-v${YTRVEVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RV=Youtube-Music-Revanced-v${YTMRVVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RVE=Youtube-Music-Revanced Extended-v${YTMRVEVERSION}" >> $GITHUB_ENV
- uses: vishnudxb/cancel-workflow@v1.2
if: failure()