mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
79 lines
2.7 KiB
YAML
79 lines
2.7 KiB
YAML
name: Patch Revanced & Revanced Extended
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 */6 * *"
|
|
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: Patch Revanced & Revanced Extended non-root
|
|
run: bash patch.sh
|
|
|
|
- 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 -
|
|
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 -
|
|
RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
|
|
rm -rf patches.json
|
|
echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt
|
|
echo "INFO-RV=Revanced-v${RVVERSION}" >> $GITHUB_ENV
|
|
echo "INFO-RVE=Revanced Extended-v${RVEVERSION}" >> $GITHUB_ENV
|
|
|
|
- name: Release Revanced
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced.apk
|
|
name: ${{ env.INFO-RV }}
|
|
tag_name: Revanced
|
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Release Revanced Extended
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: yt-revanced-extended.apk
|
|
name: ${{ env.INFO-RVE }}
|
|
tag_name: 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
|
|
|
|
- name: Delete Release
|
|
uses: dev-drprasad/delete-older-releases@v0.2.1
|
|
with:
|
|
repo: ${{ github.repository }}
|
|
keep_latest: 2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
permissions: write-all
|