From 4df4c80f3f50fa44cc80259b7983f44fa3b68768 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Mon, 27 Dec 2021 15:09:06 -0800 Subject: [PATCH] Allow for non-true values (verbose and future inputs) --- action.yml | 2 +- entrypoint.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 8f54cbf..179607e 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ # Generated from action.yml.erb -# 6fd2e419246dd9cc670908826ea4f649 +# cc3ed5559aaeabbc7ccc9899f91995ca name: 'Pages Jekyll' description: 'A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages' inputs: diff --git a/entrypoint.sh b/entrypoint.sh index 9d25bc1..462a8a9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,17 +19,17 @@ export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN export PAGES_REPO_NWO=$GITHUB_REPOSITORY # Set verbose flag -if [ -z "$INPUT_VERBOSE" ]; then - VERBOSE='' -else +if [ "$INPUT_VERBOSE" = 'true' ]; then VERBOSE='--verbose' +else + VERBOSE='' fi # Set future flag -if [ -z "$INPUT_FUTURE" ]; then - FUTURE='' -else +if [ "$INPUT_FUTURE" = 'true' ]; then FUTURE='--future' +else + FUTURE='' fi cd "$PAGES_GEM_HOME"