mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-12-25 02:41:48 +01:00
Update magisk.yml
This commit is contained in:
parent
d242f57139
commit
465544ba4e
18
.github/workflows/magisk.yml
vendored
18
.github/workflows/magisk.yml
vendored
@ -5,11 +5,19 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
magisk_apk:
|
||||
description: "Magisk version. Should be stable, beta, canary or a download link to Magisk apk."
|
||||
description: "Magisk version"
|
||||
required: true
|
||||
default: "stable"
|
||||
type: choice
|
||||
options:
|
||||
- stable
|
||||
- beta
|
||||
- canary
|
||||
- customize
|
||||
magisk_link:
|
||||
description: "Download link to Magisk's apk if you are choosing customize above."
|
||||
gapps_variant:
|
||||
description: "Variants of gapps."
|
||||
description: "Variants of gapps"
|
||||
required: true
|
||||
default: "none"
|
||||
type: choice
|
||||
@ -25,7 +33,7 @@ on:
|
||||
- tvstock
|
||||
- tvmini
|
||||
root_sol:
|
||||
description: "Root solution."
|
||||
description: "Root solution"
|
||||
required: true
|
||||
default: "magisk"
|
||||
type: choice
|
||||
@ -130,11 +138,13 @@ jobs:
|
||||
|
||||
magisk_apk = """${{ github.event.inputs.magisk_apk }}"""
|
||||
|
||||
if magisk_apk == "customize":
|
||||
maigks_apk = """${{ github.event.inputs.magisk_link }}"""
|
||||
if not magisk_apk:
|
||||
magisk_apk = "stable"
|
||||
if magisk_apk == "stable" or magisk_apk == "beta" or magisk_apk == "canary":
|
||||
magisk_apk = json.loads(requests.get(f"https://github.com/topjohnwu/magisk-files/raw/master/{magisk_apk}.json").content)['magisk']['link']
|
||||
|
||||
|
||||
out_file = "magisk.zip"
|
||||
|
||||
arch = "${{ matrix.arch }}"
|
||||
|
Loading…
Reference in New Issue
Block a user