-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (36 loc) · 962 Bytes
/
dump.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Dump firmware(s)
on:
workflow_dispatch:
inputs:
urls:
description: 'URLs'
required: true
jobs:
dump:
runs-on: ubuntu-latest
steps:
- name: Run maximize-build-space
uses: easimon/maximize-build-space@master
with:
remove-android: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup
run: |
sudo apt update
sudo apt -y install aria2 zstd
- name: Dump
id: dump
run: echo ${{ inputs.urls }} | xargs ./dump.sh
- name: Upload release assets
uses: ncipollo/release-action@v1
with:
artifacts: ota/*.img.zst
artifactErrorsFailBuild: true
body: ${{ steps.dump.outputs.body }}
tag: ${{ steps.dump.outputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}