-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (57 loc) · 1.95 KB
/
pif_gen_matrix.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build Matrix Google Pixel
on:
workflow_dispatch:
schedule:
- cron: "37 13 7 * *" # At 13:37 on day-of-month 7. (UTC)
jobs:
onSchedule:
name: On Schedule
strategy:
matrix:
device_name: [redfin, husky, shiba, cheetah, raven]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Clone Repo getProps
uses: whyakari/github-repo-action@v3.1
with:
owner: 'whyakari'
repository: 'getProps'
- name: Install dos2unix python3 python3-pip
uses: daaku/gh-action-apt-install@v4
with:
packages: dos2unix python3 python3-pip
- name: Install protobuf and pyrogram, tgcrypto
working-directory: ./getProps
run: |
pip install --upgrade pip
pip install tgcrypto pyrogram
pip3 install -Iv protobuf==3.20.3
- name: Make executable all script
working-directory: ./getProps
run: |
chmod +x *.sh
- name: Download last ota ${{ matrix.device_name }}
working-directory: ./getProps
run: |
./last_ota_build.sh ${{ matrix.device_name }}
- name: Extract Image and build prop ${{ matrix.device_name }}
working-directory: ./getProps
run: |
./extract_images.sh
- name: Read final_name from file
id: read_name
run: |
echo ::set-output name=final_name::$(cat build.txt)
working-directory: ./getProps
- name: Create Pif ${{ matrix.device_name }}
working-directory: ./getProps
run: |
./gen_custom_pif.sh json /home/runner/work/getProps/getProps/getProps/build.prop
- name: Upload Prop ${{ matrix.device_name }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.read_name.outputs.final_name }}
path: /home/runner/work/getProps/getProps/getProps/pif.json
if-no-files-found: error