Cleanup
This commit is contained in:
parent
94ac00a90c
commit
7280be6ce3
|
@ -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.
|
description: Create new branch with the name of `branch`-input in local and remote repository, if it doesn't exist yet.
|
||||||
default: false
|
default: false
|
||||||
internal_git_binary:
|
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
|
default: git
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|
|
@ -46,10 +46,9 @@ _main() {
|
||||||
|
|
||||||
_check_if_git_is_available() {
|
_check_if_git_is_available() {
|
||||||
if hash -- "$INPUT_INTERNAL_GIT_BINARY" 2> /dev/null; then
|
if hash -- "$INPUT_INTERNAL_GIT_BINARY" 2> /dev/null; then
|
||||||
echo "git found";
|
echo "::debug::git binary found.";
|
||||||
echo "::debug::git binary found";
|
|
||||||
else
|
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;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -1051,5 +1051,5 @@ cat_github_output() {
|
||||||
run git_auto_commit
|
run git_auto_commit
|
||||||
|
|
||||||
assert_failure;
|
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."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue