From 2cacf907e1feba7843df36e717a087942ac2befa Mon Sep 17 00:00:00 2001 From: Tom Ward Date: Fri, 9 Jul 2021 11:00:34 +0100 Subject: [PATCH] Fix multiple $EXTRA_PACKAGES (#109) --- action.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/action.sh b/action.sh index c5f166a..172b7c5 100755 --- a/action.sh +++ b/action.sh @@ -6,9 +6,10 @@ function print_info() { echo -e "\e[36mINFO: ${1}\e[m" } -if [ -n "${EXTRA_PACKAGES}" ]; then - apk add --no-cache "${EXTRA_PACKAGES}" -fi +for package in ${EXTRA_PACKAGES} +do + apk add --no-cache "${package}" +done if [ -n "${REQUIREMENTS}" ] && [ -f "${GITHUB_WORKSPACE}/${REQUIREMENTS}" ]; then pip install -r "${GITHUB_WORKSPACE}/${REQUIREMENTS}"