-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 1.35 KB
/
release-multiple.yaml
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
name: Release multiple devices
on:
schedule:
- cron: '0 3 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Checking if a new version was released at all before starting the matrix would be more efficient, but depends on device
# So run the whole matrix as cron. One of the first checks is if there is a need for release at all.
build-devices:
strategy:
# When run concurrently, 422 might occur on new releases.
# To completely avoid those, a retry mechanisms would be necessary.
# It might be easier to build a loop into the bash script.
# For now, make the action run sequentially
max-parallel: 1
matrix:
include:
- device-id: caiman # Pixel 9 Pro
magisk-preinit-device: sda10
- device-id: shiba # Pixel 8
magisk-preinit-device: sda10
#- device-id: oriole # Pixel 6
# magisk-preinit-device: metadata
# - device-id: cheetah # Pixel Pro 7
# magisk-preinit-device: persist # https://xdaforums.com/t/guide-to-lock-bootloader-while-using-rooted-otaos-magisk-root.4510295/page-5#post-88499289)
uses: ./.github/workflows/release-single.yaml
secrets: inherit
with:
device-id: ${{ matrix.device-id }}
magisk-preinit-device: ${{ matrix.magisk-preinit-device }}