Skip to content

Commit 1fce957

Browse files
Get pint version from local composer
1 parent 0ac6db6 commit 1fce957

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ pint_install_command=("composer global require laravel/pint:PINT_VERSION --no-pr
66
if [[ "${INPUT_PINTVERSION}" ]]
77
then
88
pint_install_command="${pint_install_command/PINT_VERSION/${INPUT_PINTVERSION}}"
9+
elif [[ "${INPUT_USECOMPOSER}" ]]
10+
then
11+
pint_install_command="${pint_install_command/PINT_VERSION/$(composer show --locked | grep 'laravel/pint' | awk '{print $2}')}"
912
else
1013
pint_install_command="${pint_install_command/:PINT_VERSION/}"
1114
fi

0 commit comments

Comments
 (0)