mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
Update entrypoint.sh
This commit is contained in:
@@ -37,10 +37,10 @@ _git_push() {
|
||||
|
||||
# PROGRAM
|
||||
echo "Installing prettier..."
|
||||
if -z "$INPUT_PRETTIER_VERSION"; then
|
||||
npm install --silent --global prettier
|
||||
else
|
||||
if "$INPUT_PRETTIER_VERSION"; then
|
||||
npm install --silent --global prettier@$INPUT_PRETTIER_VERSION
|
||||
else
|
||||
npm install --silent --global prettier
|
||||
fi
|
||||
|
||||
echo "Prettifing files..."
|
||||
|
||||
Reference in New Issue
Block a user