custom: remove modules from selection

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-27 15:41:56 -04:00
parent f530b22232
commit bf792503b6

View File

@ -48,7 +48,6 @@ jobs:
MODEL = jsonbody.get('model', '')
PRODUCTVER = jsonbody.get('version', '')
ADDONS = jsonbody.get('addons', '')
MODULES = jsonbody.get('modules', '')
KERNEL = jsonbody.get('kernel', '')
FORMAT = jsonbody.get('format', '')
except ValueError as e:
@ -57,7 +56,6 @@ jobs:
set_output("MODEL", MODEL)
set_output("PRODUCTVER", PRODUCTVER)
set_output("ADDONS", ADDONS)
set_output("MODULES", MODULES)
set_output("KERNEL", KERNEL)
set_output("FORMAT", FORMAT)
@ -133,13 +131,6 @@ jobs:
writeConfigKey "addons.\"${A}\"" "${VALUE}" "${PRESET_CONFIG_FILE}"
done
fi
writeConfigKey "modules" "{}" "${PRESET_CONFIG_FILE}"
if [ -n "${{ env.MODULES }}" ]; then
for M in $(echo "${{ env.MODULES }}" | tr ',' ' ' | sed 's/\[//g' | sed 's/\]//g'); do
VALUE=""
writeConfigKey "MODULES.\"${M}\"" "${VALUE}" "${PRESET_CONFIG_FILE}"
done
fi
echo "$(cat "${PRESET_CONFIG_FILE}")"
sudo echo "arc-${{ env.MODEL }}-${{ env.PRODUCTVER }}-${{ env.VERSION }}" >"/tmp/automated"
sudo mv -f "/tmp/automated" "/tmp/p3/automated"