diff --git a/.github/workflows/magisk.yml b/.github/workflows/magisk.yml index 7f471b9..8d9f216 100644 --- a/.github/workflows/magisk.yml +++ b/.github/workflows/magisk.yml @@ -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 }}"