forked from JohnsonRan/payload-dumper-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.25 KB
/
run.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
name: payload-dumper-actions
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install depedencies
run: |
mkdir tmp
wget https://github.com/ssut/payload-dumper-go/releases/download/1.2.0/payload-dumper-go_1.2.0_linux_amd64.tar.gz -P tmp/
tar zxvf ./tmp/payload-dumper-go_1.2.0_linux_amd64.tar.gz -o payload-dumper-go
- name: Download ROM
run: |
wget -o /tmp/DownloadLog.txt -O ./tmp/ROM.zip -i url.txt
- name: Dump payload.bin
run: |
./payload-dumper-go -p boot -o output ./tmp/ROM.zip
rm -rf tmp/
rm payload-dumper-go
- name: Upload to Artifacts
uses: actions/upload-artifact@v2
with:
name: boot.img
path: './output/boot.img'
- name: Upload to ArtifactsLog
uses: actions/upload-artifact@v2
with:
name: DownloadLog.txt
path: '/tmp/DownloadLog.txt'
- name: Send to WechatByServer
run: |
curl "https://sctapi.ftqq.com/SCT31697TRL9eRhFmA3oYhL9uV7uuGDPM.send?title=您的小米Rom已经解压打包完成&desp=&urlencode=utf-8"