-
-
Notifications
You must be signed in to change notification settings - Fork 198
199 lines (198 loc) · 7.49 KB
/
ci.yml
File metadata and controls
199 lines (198 loc) · 7.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
name: 2. Check new patch
permissions: write-all
on:
schedule:
- cron: "0 9 * * *"
workflow_dispatch:
inputs:
retry_count:
description: 'Do not change value below'
required: false
default: '1'
jobs:
check:
name: Check new patch
runs-on: ubuntu-latest
env:
repository: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Check github connection
id: check-gh
run: bash src/etc/connection.sh
- name: Check new patch Morphe
id: check-morphe
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh MorpheApp/morphe-patches latest youtube-morphe.apk
- name: Check new patch Morphe Beta
id: check-morphe-beta
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh MorpheApp/morphe-patches prerelease youtube-beta-morphe.apk
- name: Check new patch Revanced Extended forked by Anddea Stable Version
id: check-rve-anddea-stable
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh anddea/revanced-patches latest youtube-stable-anddea.apk
- name: Check new patch Revanced Extended forked by Anddea Beta Version
id: check-rve-anddea-beta
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh anddea/revanced-patches prerelease youtube-beta-anddea.apk
- name: Check new patch Twitter Piko Stable
id: check-twitter-piko-stable
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh crimera/piko latest twitter-stable-piko.apk
- name: Check new patch Twitter Piko Beta
id: check-twitter-piko-beta
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh crimera/piko prerelease twitter-beta-piko.apk
- name: Check new patch DeReVanced
id: check-derv
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh RookieEnough/De-ReVanced latest gg-photos-arm64-v8a-derevanced.apk
- name: Check new patch Paresh
id: check-paresh
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/_ci.sh Paresh-Maheshwari/paresh-patches latest telegram-web-version-paresh.apk
- name: Check new patch hoo-dles
id: check-hoo-dles
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh hoo-dles/morphe-patches latest protonvpn-hoo-dles.apk
- name: Check new patch BiliRoamingM
id: check-BiliRoamingM
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh sakarie9/BiliRoamingM latest bilibili-BiliRoamingM.apk
- name: Check new patch Revanced Experiments
id: check-Revanced-Experiments
if: steps.check-gh.outputs.internet_error == '0'
run: bash src/etc/ci.sh Aunali321/ReVancedExperiments latest telegram-revanced-experiments.apk
- name: Re-run workflow if github connection not stable
if: always() && steps.check-morphe.outcome == 'skipped' && env.retry_count < env.max_retries
uses: actions/github-script@v7
with:
script: |
const maxRetries = ${{ env.max_retries }};
let retryCount = ${{ env.retry_count }};
if (retryCount < maxRetries) {
retryCount += 1;
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "ci.yml",
ref: context.ref,
inputs: {
'retry_count': String(retryCount)
}
});
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
retry_count: ${{ github.event.inputs.retry_count }}
max_retries: 3
outputs:
check_morphe: ${{ steps.check-morphe.outputs.new_patch }}
check_morphe_beta: ${{ steps.check-morphe-beta.outputs.new_patch }}
check_rve_anddea_stable: ${{ steps.check-rve-anddea-stable.outputs.new_patch }}
check_rve_anddea_beta: ${{ steps.check-rve-anddea-beta.outputs.new_patch }}
check_rve_arsclib: ${{ steps.check-rve-arsclib.outputs.new_patch }}
check_twitter_piko_stable: ${{ steps.check-twitter-piko-stable.outputs.new_patch }}
check_twitter_piko_beta: ${{ steps.check-twitter-piko-beta.outputs.new_patch }}
check_paresh: ${{ steps.check-paresh.outputs.new_patch }}
check_hoo_dles: ${{ steps.check-hoo-dles.outputs.new_patch }}
check_BiliRoamingM: ${{ steps.check-BiliRoamingM.outputs.new_patch }}
check_Revanced_Experiments: ${{ steps.check-Revanced-Experiments.outputs.new_patch }}
Patch-Morphe:
name: Patch Morphe
needs: check
if: ${{ needs.check.outputs.check_morphe == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Morphe"
Patch-Morphe-Beta:
name: Patch Morphe Beta
needs: check
if: ${{ needs.check.outputs.check_morphe_beta == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Morphe Beta"
Patch-RVE-anddea-stable:
name: Patch RVX Anddea Stable
needs: check
if: ${{ needs.check.outputs.check_rve_anddea_stable == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "RVE-anddea-stable"
Patch-RVE-anddea-beta:
name: Patch RVX Anddea Beta
needs: check
if: ${{ needs.check.outputs.check_rve_anddea_beta == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "RVE-anddea-beta"
Patch-Revanced-Extended-Arsclib:
name: Patch Revanced Extended Arsclib
needs: check
if: ${{ needs.check.outputs.check_rve_arsclib == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Revanced Extended Arsclib"
Patch-Twitter-Piko-Stable:
name: Patch Twitter Piko Stable
needs: check
if: ${{ needs.check.outputs.check_twitter_piko_stable == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Twitter Piko Stable"
Patch-Twitter-Piko-Beta:
name: Patch Twitter Piko Beta
needs: check
if: ${{ needs.check.outputs.check_twitter_piko_beta == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Twitter Piko Beta"
Patch-DeRevanced:
name: Patch DeRevanced Stable
needs: check
if: ${{ needs.check.outputs.check_derv == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "DeRevanced"
Patch-Paresh:
name: Patch Paresh
needs: check
if: ${{ needs.check.outputs.check_paresh == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Paresh"
Patch-hoo-dles:
name: Patch hoo-dles
needs: check
if: ${{ needs.check.outputs.check_hoo_dles == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "hoo-dles"
Patch-BiliRoamingM:
name: Patch BiliRoamingM
needs: check
if: ${{ needs.check.outputs.check_BiliRoamingM == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "BiliRoamingM"
Patch-Revanced-Experiments:
name: Patch Revanced Experiments
needs: check
if: ${{ needs.check.outputs.check_Revanced_Experiments == 1 }}
uses: ./.github/workflows/manual-patch.yml
secrets: inherit
with:
org: "Revanced Experiments"