Files
Revanced-And-Revanced-Exten…/.github/workflows/manual-patch.yml
siritami 7161b7691d change split arch, added rufusin, more anddea app
- Previous I use my forked cli in 582c94e90a
To make split file smaller. But now Revanced cli already fix problem in
https://github.com/ReVanced/revanced-library/issues/16
So I revert to old split arch for faster split
- Added more apps, rename little things...
2024-04-15 13:08:23 +07:00

312 lines
13 KiB
YAML

name: Manual Patch
permissions: write-all
env:
repository: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
retry_count: ${{ github.event.inputs.retry_count }}
max_retries: 3
org_input: ${{ inputs.org }}
org_event_input: ${{ github.event.inputs.org }}
on:
workflow_dispatch:
inputs:
org:
description: 'Which "Revanced" do you want to patch?'
required: true
default: 'Revanced'
type: choice
options:
- 'All'
- 'Revanced'
- 'Revanced Beta'
- 'ReX'
- 'RVE-anddea-stable'
- 'RVE-anddea-beta'
- 'RVE-rufusin'
- 'Revanced Extended'
- 'Twitter Piko Stable'
- 'Twitter Piko Beta'
- 'Revanced Extended Android 6,7'
- 'Revanced Extended Android 5'
retry_count:
description: 'Do not change value below'
required: false
default: '1'
workflow_call:
inputs:
org:
required: true
type: string
jobs:
patch_rv:
name: Patch Revanced Stable version
if: ${{ github.event.inputs.org == 'Revanced' || github.event.inputs.org == 'All' || inputs.org == 'Revanced' }}
runs-on: ubuntu-latest
strategy:
matrix:
Include:
- org: "Revanced"
run: "1"
- org: "Revanced"
run: "2"
- org: "Revanced"
run: "3"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rv
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rv
if: steps.check-gh-rv.outputs.internet_error == '0'
run: bash src/build/Revanced-${{ matrix.Include.run }}.sh
- name: Releasing APK files
id: release-rv
if: steps.check-gh-rv.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rv.outcome == 'skipped' || steps.release-rv.outcome == 'skipped' && env.retry_count < env.max_retries && matrix.Include.run == '1'
uses: ./.github/actions/re-run
patch_rv_beta:
name: Patch Revanced Beta version
if: ${{ github.event.inputs.org == 'Revanced Beta' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Beta' }}
runs-on: ubuntu-latest
strategy:
matrix:
Include:
- org: "Revanced-Beta"
run: "1"
- org: "Revanced-Beta"
run: "2"
- org: "Revanced-Beta"
run: "3"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rvb
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rvb
if: steps.check-gh-rvb.outputs.internet_error == '0'
run: bash src/build/Revanced-Beta-${{ matrix.Include.run }}.sh
- name: Releasing APK files
id: release-rvb
if: steps.check-gh-rvb.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rvb.outcome == 'skipped' || steps.release-rvb.outcome == 'skipped' && env.retry_count < env.max_retries && matrix.Include.run == '1'
uses: ./.github/actions/re-run
patch_rex:
name: Patch ReX
if: ${{ github.event.inputs.org == 'ReX' || github.event.inputs.org == 'All' || inputs.org == 'ReX' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rex
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rex
if: steps.check-gh-rex.outputs.internet_error == '0'
run: bash src/build/ReX.sh
- name: Releasing APK files
id: release-rex
if: steps.check-gh-rex.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rex.outcome == 'skipped' || steps.release-rex.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve_anddea_stable:
name: Patch Revanced Extended forked by Anddea Stable version
if: ${{ github.event.inputs.org == 'RVE-anddea-stable' || github.event.inputs.org == 'All' || inputs.org == 'RVE-anddea-stable' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve-anddea-stable
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve-anddea
if: steps.check-gh-rve-anddea-stable.outputs.internet_error == '0'
run: bash src/build/Anddea-Revanced-Extended.sh latest
- name: Releasing APK files
id: release-rve-anddea-stable
if: steps.check-gh-rve-anddea-stable.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve-anddea-stable.outcome == 'skipped' || steps.release-rve-anddea-stable.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve_anddea_beta:
name: Patch Revanced Extended forked by Anddea Beta version
if: ${{ github.event.inputs.org == 'RVE-anddea-beta' || github.event.inputs.org == 'All' || inputs.org == 'RVE-anddea-beta' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve-anddea-beta
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve-anddea-beta
if: steps.check-gh-rve-anddea-beta.outputs.internet_error == '0'
run: bash src/build/Anddea-Revanced-Extended.sh prerelease
- name: Releasing APK files
id: release-rve-anddea-beta
if: steps.check-gh-rve-anddea-beta.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve-anddea-beta.outcome == 'skipped' || steps.release-rve-anddea-beta.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve_rufusin_stable:
name: Patch Revanced Extended forked by Rufusin Stable version
if: ${{ github.event.inputs.org == 'RVE-rufusin' || github.event.inputs.org == 'All' || inputs.org == 'RVE-rufusin' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve-rufusin-stable
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve-rufusin
if: steps.check-gh-rve-rufusin-stable.outputs.internet_error == '0'
run: bash src/build/Rufusin-Revanced-Extended.sh
- name: Releasing APK files
id: release-rve-rufusin-stable
if: steps.check-gh-rve-rufusin-stable.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve-rufusin-stable.outcome == 'skipped' || steps.release-rve-rufusin-stable.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve:
name: Patch Revanced Extended
if: ${{ github.event.inputs.org == 'Revanced Extended' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve
if: steps.check-gh-rve.outputs.internet_error == '0'
run: bash src/build/Revanced-Extended.sh
- name: Releasing APK files
id: release-rve
if: steps.check-gh-rve.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve.outcome == 'skipped' || steps.release-rve.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_twitter_piko_stable:
name: Patch Twitter Piko Stable
if: ${{ github.event.inputs.org == 'Twitter Piko Stable' || github.event.inputs.org == 'All' || inputs.org == 'Twitter Piko Stable' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-piko-stable
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-piko-stable
if: steps.check-gh-piko-stable.outputs.internet_error == '0'
run: bash src/build/Piko.sh latest
- name: Releasing APK files
id: release-piko-stable
if: steps.check-gh-piko-stable.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-piko-stable.outcome == 'skipped' || steps.release-piko-stable.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_twitter_piko_beta:
name: Patch Twitter Piko Beta
if: ${{ github.event.inputs.org == 'Twitter Piko Beta' || github.event.inputs.org == 'All' || inputs.org == 'Twitter Piko Beta' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-piko-beta
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-piko-beta
if: steps.check-gh-piko-beta.outputs.internet_error == '0'
run: bash src/build/Piko.sh prerelease
- name: Releasing APK files
id: release-piko-beta
if: steps.check-gh-piko-beta.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-piko-beta.outcome == 'skipped' || steps.release-piko-beta.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve67:
name: Patch Revanced Extended Android 6,7
if: ${{ github.event.inputs.org == 'Revanced Extended Android 6,7' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended Android 6,7' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve67
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve67
if: steps.check-gh-rve67.outputs.internet_error == '0'
run: bash src/build/Revanced-Extended-Android-6-7.sh
- name: Releasing APK files
id: release-rve67
if: steps.check-gh-rve67.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve67.outcome == 'skipped' || steps.release-rve67.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run
patch_rve5:
name: Patch Revanced Extended Android 5
if: ${{ github.event.inputs.org == 'Revanced Extended Android 5' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended Android 5' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Preparing to patch
uses: ./.github/actions/preparing
- name: Check github connection
id: check-gh-rve5
run: bash src/etc/connection.sh
- name: Patch apk
id: patch-rve5
if: steps.check-gh-rve5.outputs.internet_error == '0'
run: bash src/build/Revanced-Extended-Android-5.sh
- name: Releasing APK files
id: release-rve5
if: steps.check-gh-rve5.outputs.internet_error == '0'
uses: ./.github/actions/release
- name: Re-run workflow if github connection not stable
if: always() && steps.patch-rve5.outcome == 'skipped' || steps.release-rve5.outcome == 'skipped' && env.retry_count < env.max_retries
uses: ./.github/actions/re-run