Nothing Firmware Dumper #127
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: Nothing Firmware Dumper | |
on: | |
workflow_dispatch: | |
inputs: | |
urls: | |
description: 'URLs (comma or space separated)' | |
required: true | |
name: | |
description: 'Name for release (title and tag)' | |
required: true | |
jobs: | |
dump: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
run: | | |
sudo apt update | |
sudo apt -y install aria2 zstd p7zip-full parallel openssl xxhash | |
python3 -m pip install gdown | |
- name: Set script permissions | |
run: chmod +x dump.sh | |
- name: Download & Process OTA Packages | |
id: dump | |
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 | |
with: | |
artifacts: out/* | |
artifactErrorsFailBuild: true | |
body: ${{ steps.dump.outputs.body }} | |
tag: ${{ github.event.inputs.name }} | |
token: ${{ secrets.GITHUB_TOKEN }} |