Update patch.yml

This commit is contained in:
FiorenMas
2023-04-12 00:26:58 +07:00
parent 7a9437d747
commit 75d01aa764

View File

@@ -13,10 +13,7 @@ jobs:
uses: actions/setup-java@v3.10.0
with:
distribution: 'zulu'
java-version: '17'
java-version: '17'
- name: Generate Changelog
run: |
@@ -26,6 +23,7 @@ jobs:
| tr -d \" \
| wget -qi -
YT-RVVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
echo "INFO-YT-RV=Youtube-Revanced-v${YT-RVVERSION}" >> $GITHUB_ENV
rm -rf patches.json
curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
@@ -33,27 +31,26 @@ jobs:
| tr -d \" \
| wget -qi -
YT-RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
rm -rf patches.json
echo "INFO-YT-RVE=Youtube-Revanced Extended-v${YT-RVEVERSION}" >> $GITHUB_ENV
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
echo "INFO-YTM-RV=Youtube-Music-Revanced-v${YTM-RVVERSION}" >> $GITHUB_ENV
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
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
rm -rf patches.json
echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt
- uses: vishnudxb/cancel-workflow@v1.2
if: failure()
with: