Skip to content

Commit

Permalink
dump.yml: Modify description, support multiple URL formats, clean up …
Browse files Browse the repository at this point in the history
…setup steps

- State input requirements in the description
- Accept input URLs in both space-separated and comma-separated formats
- Remove the additional gdown installation step and integrate it into the environment setup
- Rename steps

Signed-off-by: Spike <[email protected]>
  • Loading branch information
spike0en committed Jan 5, 2025
1 parent 156e668 commit 63aa406
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/dump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
urls:
description: 'URLs'
description: 'URLs (comma or space separated)'
required: true
name:
description: 'Name'
description: 'Name for release (title and tag)'
required: true

jobs:
Expand All @@ -19,22 +19,22 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup
- name: Setup environment
run: |
sudo apt update
sudo apt -y install aria2 zstd p7zip-full parallel openssl xxhash
- name: Install gdown
run: |
python3 -m pip install gdown
- name: Set script permissions
run: |
chmod +x dump.sh
run: chmod +x dump.sh

- name: Dump
- name: Download & Process OTA Packages
id: dump
run: echo ${{ inputs.urls }} | xargs ./dump.sh
run: |
IFS=',' read -ra URLS <<< "${{ inputs.urls }}"
for url in "${URLS[@]}"; do
echo "$url"
done | xargs ./dump.sh
- name: Upload release assets
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 63aa406

Please sign in to comment.