From 7280be6ce37ca900b933362abd6fb3cc0f6df002 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 5 Nov 2022 11:49:43 +0100 Subject: [PATCH] Cleanup --- action.yml | 2 +- entrypoint.sh | 5 ++--- tests/git-auto-commit.bats | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 044e0e0..4e74526 100644 --- a/action.yml +++ b/action.yml @@ -71,7 +71,7 @@ inputs: description: Create new branch with the name of `branch`-input in local and remote repository, if it doesn't exist yet. default: false internal_git_binary: - description: Internal use only. Path git binary that should be used. + description: Internal use only! Path to git binary used to check if git is available. (Don't change this!) default: git outputs: diff --git a/entrypoint.sh b/entrypoint.sh index 3085fb3..52449a6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -46,10 +46,9 @@ _main() { _check_if_git_is_available() { if hash -- "$INPUT_INTERNAL_GIT_BINARY" 2> /dev/null; then - echo "git found"; - echo "::debug::git binary found"; + echo "::debug::git binary found."; else - echo "::error ::git not found. git-auto-commit requires git to be available." + echo "::error ::git-auto-commit could not find git binary. Please make sure git is available." exit 1; fi } diff --git a/tests/git-auto-commit.bats b/tests/git-auto-commit.bats index 79b9ce8..92a3434 100644 --- a/tests/git-auto-commit.bats +++ b/tests/git-auto-commit.bats @@ -1051,5 +1051,5 @@ cat_github_output() { run git_auto_commit assert_failure; - assert_line "::error ::git not found. git-auto-commit requires git to be available." + assert_line "::error ::git-auto-commit could not find git binary. Please make sure git is available." }