forked from xc112lg/dumpyara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdump.yml
55 lines (45 loc) · 1.39 KB
/
dump.yml
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
name: Dump
# on:
# push:
# branches:
# - master
workflow_dispatch:
env:
DUMP_URL: "https://bn.d.miui.com/V14.0.3.0.TMAMIXM/miui_ISHTARGlobal_V14.0.3.0.TMAMIXM_3c0ba60c9e_13.0.zip" # Direct url to a recovery zip
jobs:
dump:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
overprovision-lvm: true
remove-dotnet: true
remove-android: true
remove-codeql: true
remove-haskell: true
remove-docker-images: true
- name: Set up Git
uses: actions/checkout@v3
- name: Create .githubtoken file
run: echo "${{ secrets.GIT_TOKEN }}" > .githubtoken
- name: Create .tgtoken file
run: echo "${{ secrets.TELEGRAM_TOKEN }}" > .tgtoken
- name: Set up environment
run: bash setup.sh
# protobuf-compiler is required for this
#- name: Install otadump
# uses: actions-rs/install@v0.1
# with:
# crate: otadump
# version: latest
- name: Run dumpyara
run: |
if [[ $DUMP_URL == *"pixeldrain"* || $DUMP_URL == *"dlcdnets.asus.com"* ]]; then
wget -O dump.zip "$DUMP_URL"
bash dumpyara.sh dump.zip
else
bash dumpyara.sh "$DUMP_URL"
fi