Release multiple devices #114
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: 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 }} |