mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
124 lines
4.6 KiB
YAML
124 lines
4.6 KiB
YAML
name: Patch Revanced & Revanced Extended
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 */3 * *"
|
|
workflow_dispatch:
|
|
jobs:
|
|
patch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up jdk
|
|
uses: actions/setup-java@v3.10.0
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '17'
|
|
|
|
|
|
|
|
|
|
- name: Generate Changelog
|
|
run: |
|
|
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 -
|
|
YT-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)
|
|
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
|
|
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
|
|
|
|
- uses: vishnudxb/cancel-workflow@v1.2
|
|
if: failure()
|
|
with:
|
|
repo: octocat/hello-world
|
|
workflow_id: ${{ github.run_id }}
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Delete Release
|
|
uses: dev-drprasad/delete-older-releases@v0.2.1
|
|
with:
|
|
repo: ${{ github.repository }}
|
|
keep_latest: 0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Release Youtube Revanced
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced.apk
|
|
name: ${{ env.INFO-YT-RV }}
|
|
tag_name: YT-Revanced
|
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Release Youtube Revanced Extended
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced-extended.apk
|
|
name: ${{ env.INFO-YT-RVE }}
|
|
tag_name: YT-Revanced-Extended
|
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Release Youtube Music Revanced
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced.apk
|
|
name: ${{ env.INFO-YTM-RV }}
|
|
tag_name: YT-Revanced
|
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Release Youtube Music Revanced Extended
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced-extended.apk
|
|
name: ${{ env.INFO-YTM-RVE }}
|
|
tag_name: YT-Revanced-Extended
|
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Delete workflow runs
|
|
uses: Mattraks/delete-workflow-runs@v2
|
|
with:
|
|
token: ${{ github.token }}
|
|
repository: ${{ github.repository }}
|
|
retain_days: 0
|
|
keep_minimum_runs: 5
|
|
|
|
permissions: write-all
|