mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-16 05:10:31 +02:00
New Parameter Defaults To Null
This commit is contained in:
@@ -29,7 +29,6 @@ inputs:
|
|||||||
prettier_version:
|
prettier_version:
|
||||||
description: Specific version of prettier (by default just use the latest version)
|
description: Specific version of prettier (by default just use the latest version)
|
||||||
required: false
|
required: false
|
||||||
default: False
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ _git_push() {
|
|||||||
|
|
||||||
# PROGRAM
|
# PROGRAM
|
||||||
echo "Installing prettier..."
|
echo "Installing prettier..."
|
||||||
if ! "$INPUT_PRETTIER_VERSION"; then
|
if -z "$INPUT_PRETTIER_VERSION"; then
|
||||||
npm install --silent --global prettier
|
npm install --silent --global prettier
|
||||||
else
|
else
|
||||||
npm install --silent --global prettier@$INPUT_PRETTIER_VERSION
|
npm install --silent --global prettier@$INPUT_PRETTIER_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user