From 88ddd5fba5a6492a19b30d76b43b8a9c26dff157 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 22 Apr 2020 21:04:17 +0200 Subject: [PATCH] WIP --- entrypoint.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 848f9a6..6be3a2e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -50,19 +50,12 @@ _add_files() { _local_commit() { echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}"; + echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}"; - git --version; - - if [ -n "$INPUT_COMMIT_OPTIONS" ] - then - echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}"; - - git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "Message" "${INPUT_COMMIT_OPTIONS}"; - - # git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR" "${INPUT_COMMIT_OPTIONS}"; - else - git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR"; - fi + git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" \ + commit -m "$INPUT_COMMIT_MESSAGE" \ + --author="$INPUT_COMMIT_AUTHOR" \ + ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}; } _tag_commit() {