Allow for non-true values (verbose and future inputs)

This commit is contained in:
Yoann Chaudet
2021-12-27 15:25:15 -08:00
parent 22f2e08e5f
commit 4df4c80f3f
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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:
+6 -6
View File
@@ -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"