-
Notifications
You must be signed in to change notification settings - Fork 36
executable file
·56 lines (46 loc) · 1.42 KB
/
dumpyara.yml
File metadata and controls
executable file
·56 lines (46 loc) · 1.42 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
name: Dumpyara
on:
workflow_dispatch:
inputs:
ROM_URL:
description: "Direct Link of the ROM/Firmware to Dump"
required: true
EXTRA_CMD:
description: "Any Extra Command to Run Before Dump"
required: false
defaults:
run:
shell: bash
env:
ROM_URL: ${{ github.event.inputs.ROM_URL }}
EXTRA_CMD: ${{ github.event.inputs.EXTRA_CMD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkouts
uses: actions/checkout@v2
- name: Clone Dumpyara
run: |
git clone https://github.com/AndroidDumps/dumpyara.git
- name: Setup Dumpyara environment
working-directory: dumpyara
run: |
sudo bash setup.sh
git config --global user.name "Sushrut1101"
git config --global user.email "guptasushrut@gmail.com"
- name: Setup config envs
working-directory: dumpyara
run: |
echo "${{ secrets.GIT_TOKEN }}" > .github_token
echo "${{ secrets.GIT_ORG_NAME }}" > .github_orgname
echo "${{ secrets.BOT_TOKEN }}" > .tg_token
echo "${{ secrets.CHAT_ID }}" > .tg_chat
- name: Run the Extra Command
working-directory: dumpyara
run: |
$EXTRA_CMD
- name: Running Dumpyara
working-directory: dumpyara
run: |
./dumpyara.sh "$ROM_URL"