ROM Dumper #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using Dumpyara & BuildJet | |
name: ROM Dumper | |
on: | |
workflow_dispatch: | |
inputs: | |
ROM_URL: | |
description: "ROM_URL" | |
required: true | |
default: "https://bigota.d.miui.com/V14.0.22.12.26.DEV/miui_ARES_V14.0.22.12.26.DEV_77dab78db5_13.0.zip" | |
GITHUB_ORG: | |
description: "GITHUB_ORG" | |
required: true | |
default: "RandomPush" | |
jobs: | |
build: | |
if: github.event.repository.owner.id == github.event.sender.id | |
runs-on: buildjet-8vcpu-ubuntu-2004 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare Dumpyara | |
run: | | |
sudo apt update &> /dev/null | |
sudo apt -y install curl python3 wget &> /dev/null | |
curl -sS https://raw.githubusercontent.com/crazystylus/otadump/mainline/install.sh | bash | |
git config --global user.name "bot" | |
git config --global user.email "" | |
git config --global advice.refSyntax false | |
git clone -b test https://github.com/zainarbani/dumpyara.git dumpyara &> /dev/null | |
cd dumpyara | |
chmod +x setup.sh && chmod +x dumpyara.sh | |
ORGH=${{github.event.inputs.GITHUB_ORG}} | |
sed -i "s|ORG=AndroidDumps|ORG=$ORGH|g" dumpyara.sh | |
bash setup.sh &> /dev/null | |
- name: Download & Dump ROM | |
run: | | |
cd dumpyara | |
#wget -O rom.zip "${{github.event.inputs.ROM_URL}}" | |
bash dumpyara.sh "${{github.event.inputs.ROM_URL}}" $GH_TOKEN | |
env: | |
GH_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} |