Skip to content

Commit

Permalink
Allow for non-true values (verbose and future inputs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Chaudet committed Dec 27, 2021
1 parent 22f2e08 commit 4df4c80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
12 changes: 6 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4df4c80

Please sign in to comment.