From 65e822b2f3297ffb251f68e0470b0224a54ab85d Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 24 Mar 2020 09:56:43 +0100 Subject: [PATCH] New Parameter Defaults To Null --- action.yml | 1 - entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 33f6041..9f26e7f 100644 --- a/action.yml +++ b/action.yml @@ -29,7 +29,6 @@ inputs: prettier_version: description: Specific version of prettier (by default just use the latest version) required: false - default: False runs: using: 'docker' diff --git a/entrypoint.sh b/entrypoint.sh index 00e3485..500329d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,7 +37,7 @@ _git_push() { # PROGRAM echo "Installing prettier..." -if ! "$INPUT_PRETTIER_VERSION"; then +if -z "$INPUT_PRETTIER_VERSION"; then npm install --silent --global prettier else npm install --silent --global prettier@$INPUT_PRETTIER_VERSION