From 74401f545a59738157aa4f209d5b7921fb59069c Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 6 Oct 2020 16:47:53 +0200 Subject: [PATCH] Added more comprehensive command for committing --- entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8d543c2..16e2e62 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,10 +38,8 @@ then # Calling method to configure the git environemnt _git_setup echo "Commiting and pushing changes..." - # Add changes to git - git add * # Commit and push changes back - git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} + git commit -a -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} git push origin echo "Changes pushed successfully." else