Update build.yaml

This commit is contained in:
Peter Njeim 2022-08-29 22:49:47 -03:00 committed by GitHub
parent 7b7f3e766c
commit 89947db35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ jobs:
else else
# TODO: keep it 11.0 since official opengapps does not support 12+ yet # TODO: keep it 11.0 since official opengapps does not support 12+ yet
# As soon as opengapps is available for 12+, we need to get the sdk/release from build.prop and download the corresponding version # As soon as opengapps is available for 12+, we need to get the sdk/release from build.prop and download the corresponding version
if [ "${{ inputs.gapps_var }}" = "Full" ]; then if [ "${{ inputs.gapps_var }}" == "Full" ]; then
GAPPS_VAR="pico" GAPPS_VAR="pico"
else else
GAPPS_VAR="${opts[GAPPS_VAR,${{ inputs.gapps_var }}]}" GAPPS_VAR="${opts[GAPPS_VAR,${{ inputs.gapps_var }}]}"
@ -148,17 +148,17 @@ jobs:
run: | run: |
declare -A magisk_vers=( ["Stable"]="stable" ["Beta"]="beta" ["Canary"]="canary" ["Debug"]="debug" ) declare -A magisk_vers=( ["Stable"]="stable" ["Beta"]="beta" ["Canary"]="canary" ["Debug"]="debug" )
if [[ "{{ inputs.magisk_ver }}" = "None" ]]; then if [[ "{{ inputs.magisk_ver }}" == "None" ]]; then
magiskVer="" magiskVer=""
elif [[ "{{ inputs.magisk_ver }}" = "Custom (URL)" ]]; then elif [[ "{{ inputs.magisk_ver }}" == "Custom (URL)" ]]; then
magiskVer="_Magisk-Custom" magiskVer="_Magisk-Custom"
else else
magiskVer="_Magisk-$(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/${magisk_vers[${{ inputs.magisk_ver }}]}.json | jq -r ".magisk.version")" magiskVer="_Magisk-$(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/${magisk_vers[${{ inputs.magisk_ver }}]}.json | jq -r ".magisk.version")"
fi fi
if [[ "${{ inputs.gapps_var }}" = "None" ]]; then if [[ "${{ inputs.gapps_var }}" == "None" ]]; then
gappsVar="" gappsVar=""
elif [[ "${{ inputs.gapps_var }}" = "MindTheGapps (URL)" ]]; then elif [[ "${{ inputs.gapps_var }}" == "MindTheGapps (URL)" ]]; then
gappsVar="_MindTheGapps" gappsVar="_MindTheGapps"
else else
gappsVar="_${{ inputs.gapps_var }}-OpenGApps" gappsVar="_${{ inputs.gapps_var }}-OpenGApps"