Skip to content

Commit

Permalink
Get pint version from local composer
Browse files Browse the repository at this point in the history
  • Loading branch information
likeadeckofcards committed May 23, 2023
1 parent 0ac6db6 commit 1fce957
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ pint_install_command=("composer global require laravel/pint:PINT_VERSION --no-pr
if [[ "${INPUT_PINTVERSION}" ]]
then
pint_install_command="${pint_install_command/PINT_VERSION/${INPUT_PINTVERSION}}"
elif [[ "${INPUT_USECOMPOSER}" ]]
then
pint_install_command="${pint_install_command/PINT_VERSION/$(composer show --locked | grep 'laravel/pint' | awk '{print $2}')}"
else
pint_install_command="${pint_install_command/:PINT_VERSION/}"
fi
Expand Down

0 comments on commit 1fce957

Please sign in to comment.