mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
update workflow
Workflow will stop if github internet connection not stable
This commit is contained in:
7
.github/actions/release/action.yml
vendored
7
.github/actions/release/action.yml
vendored
@@ -19,10 +19,3 @@ runs:
|
|||||||
name: Revanced & Revanced Extended
|
name: Revanced & Revanced Extended
|
||||||
tag_name: all
|
tag_name: all
|
||||||
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
||||||
- name: Delete workflow runs
|
|
||||||
uses: Mattraks/delete-workflow-runs@v2.0.6
|
|
||||||
with:
|
|
||||||
token: ${{ github.token }}
|
|
||||||
repository: ${{ github.repository }}
|
|
||||||
retain_days: 90
|
|
||||||
keep_minimum_runs: 999
|
|
||||||
|
|||||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -13,25 +13,35 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Check new patch ReVanced
|
- name: Check new patch ReVanced
|
||||||
id: check-rv
|
id: check-rv
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh ReVanced/revanced-patches latest youtube-revanced.apk
|
run: bash src/etc/ci.sh ReVanced/revanced-patches latest youtube-revanced.apk
|
||||||
- name: Check new patch ReVanced Beta
|
- name: Check new patch ReVanced Beta
|
||||||
id: check-rv-beta
|
id: check-rv-beta
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh ReVanced/revanced-patches prerelease youtube-beta-revanced.apk
|
run: bash src/etc/ci.sh ReVanced/revanced-patches prerelease youtube-beta-revanced.apk
|
||||||
- name: Check new patch ReX
|
- name: Check new patch ReX
|
||||||
id: check-rex
|
id: check-rex
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh YT-Advanced/ReX-patches latest youtube-ReX.apk
|
run: bash src/etc/ci.sh YT-Advanced/ReX-patches latest youtube-ReX.apk
|
||||||
- name: Check new patch Revanced Extended
|
- name: Check new patch Revanced Extended
|
||||||
id: check-rve
|
id: check-rve
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh inotia00/revanced-patches latest youtube-revanced-extended.apk
|
run: bash src/etc/ci.sh inotia00/revanced-patches latest youtube-revanced-extended.apk
|
||||||
- name: Check new patch Revanced For Android 6 & 7
|
- name: Check new patch Revanced For Android 6 & 7
|
||||||
id: check-rve67
|
id: check-rve67
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh kitadai31/revanced-patches-android6-7 latest youtube-revanced-extended-android-6-7.apk
|
run: bash src/etc/ci.sh kitadai31/revanced-patches-android6-7 latest youtube-revanced-extended-android-6-7.apk
|
||||||
- name: Check new patch Revanced For Android 5
|
- name: Check new patch Revanced For Android 5
|
||||||
id: check-rve5
|
id: check-rve5
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/etc/ci.sh d4n3436/revanced-patches-android5 latest youtube-revanced-extended-android-5.apk
|
run: bash src/etc/ci.sh d4n3436/revanced-patches-android5 latest youtube-revanced-extended-android-5.apk
|
||||||
- name: Keep workflow run
|
- name: Keep workflow run
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: gautamkrishnar/keepalive-workflow@v1
|
uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
outputs:
|
outputs:
|
||||||
check_rv: ${{ steps.check-rv.outputs.new_patch }}
|
check_rv: ${{ steps.check-rv.outputs.new_patch }}
|
||||||
|
|||||||
36
.github/workflows/manual-patch.yml
vendored
36
.github/workflows/manual-patch.yml
vendored
@@ -38,13 +38,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/Revanced-${{ matrix.Include.run }}.sh
|
run: bash src/build/Revanced-${{ matrix.Include.run }}.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
patch_rv_beta:
|
patch_rv_beta:
|
||||||
name: Patch Revanced Beta
|
name: Patch Revanced Beta
|
||||||
@@ -53,13 +59,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/Revanced-Beta.sh
|
run: bash src/build/Revanced-Beta.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
patch_rex:
|
patch_rex:
|
||||||
name: Patch ReX
|
name: Patch ReX
|
||||||
@@ -68,13 +80,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/ReX.sh
|
run: bash src/build/ReX.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
patch_rve:
|
patch_rve:
|
||||||
name: Patch Revanced Extended
|
name: Patch Revanced Extended
|
||||||
@@ -83,13 +101,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/Revanced-Extended.sh
|
run: bash src/build/Revanced-Extended.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
patch_rve67:
|
patch_rve67:
|
||||||
name: Revanced Extended Android 6,7
|
name: Revanced Extended Android 6,7
|
||||||
@@ -98,13 +122,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/Revanced-Extended-Android-6-7.sh
|
run: bash src/build/Revanced-Extended-Android-6-7.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
patch_rve5:
|
patch_rve5:
|
||||||
name: Revanced Extended Android 5
|
name: Revanced Extended Android 5
|
||||||
@@ -113,11 +143,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Check github connection
|
||||||
|
id: check-gh
|
||||||
|
run: bash src/etc/connection.sh
|
||||||
- name: Preparing to patch
|
- name: Preparing to patch
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/preparing
|
uses: ./.github/actions/preparing
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
run: bash src/build/Revanced-Extended-Android-5.sh
|
run: bash src/build/Revanced-Extended-Android-5.sh
|
||||||
env:
|
env:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
- name: Releasing APK files
|
- name: Releasing APK files
|
||||||
|
if: steps.check-gh.outputs.internet_error == '0'
|
||||||
uses: ./.github/actions/release
|
uses: ./.github/actions/release
|
||||||
14
src/etc/connection.sh
Normal file
14
src/etc/connection.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check github connection stable or not:
|
||||||
|
check_connection() {
|
||||||
|
wget -q $(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/latest" | jq -r '.assets[] | select(.name == "patches.json") | .browser_download_url')
|
||||||
|
if [ -f patches.json ]; then
|
||||||
|
echo "internet_error=0" >> $GITHUB_OUTPUT
|
||||||
|
echo -e "\e[32mGithub connection OK\e[0m"
|
||||||
|
else
|
||||||
|
echo "internet_error=1" >> $GITHUB_OUTPUT
|
||||||
|
echo -e "\e[31mGithub connection not stable!\e[0m"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
check_connection
|
||||||
Reference in New Issue
Block a user