From 25c0d721b70d8b72e49d482915ddbd3ebfff751d Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 26 Oct 2019 14:00:59 +0200 Subject: [PATCH] Reenable if condition --- entrypoint.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 24555a7..609e9b7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,14 +30,13 @@ then # Switch to branch from current Workflow run git checkout $INPUT_BRANCH - # if [ -z ${INPUT_FILE_PATTERN+x} ]; - # then - # git add . - # else - # git add $INPUT_FILE_PATTERN - # fi - - git add $INPUT_FILE_PATTERN + if [ -z ${INPUT_FILE_PATTERN+x} ]; + then + git add . + else + echo "INPUT_FILE_PATTERN value: $INPUT_FILE_PATTERN"; + git add $INPUT_FILE_PATTERN + fi git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"