Update main.yml #4
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
name: Firmware Dump | ||
on: | ||
workflow_dispatch: | ||
env: | ||
# Telegram | ||
TG_CHAT: "@DumprXDumps" | ||
TG_TOKEN: ENCRYPTED[5f547b09e09023988e0ea334b4328cd83bea8e4eb4389f2365eab389e0df620ae2a1c0555edc0f32801cd4c594f4e2b1] | ||
# Gitlab | ||
PUSH_TO_GITLAB: true | ||
GITLAB_GROUP: Android-Dumps | ||
GITLAB_TOKEN: ENCRYPTED[99ff1b55524206ae9db506d7ac7ffa41e359124579a5756632c53d486f1a5321ab4a4a3e1c7b86c42d598912a2edf33d] | ||
# Private SSH Key | ||
PRIV_SSH_KEY: ENCRYPTED[f089734f7284794ec3d78e4fb239fd4e5a9b4db19173fb406d17b1788af1b9cc50e6b4b5c0e439bd7b2bd9feced489a8] | ||
jobs: | ||
name: "Firmware Dump by DumprX | ||
timeout_in: 120m | ||
container: | ||
image: ghcr.io/sushrut1101/docker:latest | ||
cpu: 2 | ||
memory: 8G | ||
Clone_script: | ||
git clone --depth=1 --single-branch https://github.com/DumprX/DumprX.git | ||
Set-SSH-Keys_script: | ||
mkdir -p ~/.ssh | ||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | ||
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts | ||
echo "$PRIV_SSH_KEY" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
Setup_script: | ||
git config --global user.name "Sushrut1101" | ||
git config --global user.email "[email protected]" | ||
cd DumprX | ||
echo "$GITLAB_TOKEN" > .gitlab_token | ||
echo "$GITLAB_GROUP" > .gitlab_group | ||
echo "$TG_CHAT" > .tg_chat | ||
echo "$TG_TOKEN" > .tg_token | ||
sudo bash setup.sh | ||
DumprX_script: | ||
cd DumprX || echo "Already in the Directory" | ||
./dumper.sh $(< ${CIRRUS_WORKING_DIR}/ROM_URL.txt) |