Skip to content

Commit

Permalink
Fix multiple $EXTRA_PACKAGES (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
madwort authored Jul 9, 2021
1 parent cd81255 commit 2cacf90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 2cacf90

Please sign in to comment.