mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Add files via upload
This commit is contained in:
53
.github/workflows/patch.yml
vendored
53
.github/workflows/patch.yml
vendored
@@ -5,8 +5,6 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
patch:
|
patch:
|
||||||
name: Patch Revanced & Revanced Extended
|
|
||||||
permissions: write-all
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -16,7 +14,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
|
- name: Patch Revanced & Revanced Extended non-root
|
||||||
|
run: bash patch.sh
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
run: |
|
run: |
|
||||||
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
|
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
|
||||||
@@ -35,38 +36,44 @@ jobs:
|
|||||||
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
|
rm -rf patches.json
|
||||||
echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt
|
echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt
|
||||||
echo "INFO=Revanced-v${RVVERSION} & Revanced Extended-v${RVEVERSION}" >> $GITHUB_ENV
|
echo "INFO-RV=Revanced-v${RVVERSION}" >> $GITHUB_ENV
|
||||||
|
echo "INFO-RVE=Revanced Extended-v${RVEVERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate date
|
- name: Delete Release
|
||||||
run: echo "DATE=$(date +%F)" >> $GITHUB_ENV
|
uses: dev-drprasad/delete-older-releases@v0.2.0
|
||||||
|
|
||||||
- name: Patch apk
|
|
||||||
run: bash patch.sh
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
|
||||||
with:
|
with:
|
||||||
files: yt-revanced*.apk
|
repo: ${{ github.repository }}
|
||||||
name: ${{ env.INFO }}
|
keep_latest: 0
|
||||||
tag_name: ${{ env.DATE }}
|
delete_tag_pattern: "*"
|
||||||
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Delete older releases
|
- name: Release Revanced
|
||||||
uses: dev-drprasad/delete-older-releases@v0.2.1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
keep_latest: 10
|
files: yt-revanced.apk
|
||||||
delete_tags: true
|
name: ${{ env.INFO-RV }}
|
||||||
|
tag_name: Revanced
|
||||||
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Delete workflow runs
|
||||||
uses: Mattraks/delete-workflow-runs@v2
|
uses: Mattraks/delete-workflow-runs@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
retain_days: 0
|
retain_days: 5
|
||||||
keep_minimum_runs: 5
|
keep_minimum_runs: 5
|
||||||
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
|||||||
Reference in New Issue
Block a user