Skip to content

Commit

Permalink
dumpyara: setup github workflows
Browse files Browse the repository at this point in the history
Change-Id: I0f2542d7aeac22c1ee5701a4e911a739d1dbcce0
  • Loading branch information
Kizziama committed Jan 14, 2024
1 parent fd34e83 commit 13e6367
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/dumpyara.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Dumpyara

on:
workflow_dispatch:
inputs:
link:
description: 'Direct Firmare Link'
required: true

env:
DUMP_URL: ${{ github.event.inputs.link }}
TZ: Asia/Jakarta

jobs:
dump:
runs-on: ubuntu-latest

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
overprovision-lvm: true
remove-dotnet: true
remove-android: true
remove-codeql: true
remove-haskell: true
remove-docker-images: true

- name: Set up Git
uses: actions/checkout@v4
- name: Create .githubtoken file
run: echo "${{ secrets.GH_TOKEN }}" > .githubtoken
- name: Create .tgtoken file
run: echo "${{ secrets.TG_TOKEN }}" > .tgtoken
- name: Set up environment
run: bash setup.sh
- name: Run dumpyara
run: |
if [[ $DUMP_URL == *"pixeldrain"* || $DUMP_URL == *"dlcdnets.asus.com"* ]]; then
wget -O dump.zip "$DUMP_URL"
bash dumpyara.sh dump.zip
else
bash dumpyara.sh "$DUMP_URL"
fi

0 comments on commit 13e6367

Please sign in to comment.