mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-26 02:46:08 +08:00
Improve Error Message
This commit is contained in:
@@ -103,7 +103,7 @@ _check_if_is_git_repository() {
|
||||
_check_if_repository_is_in_detached_state() {
|
||||
if [ -z "$(git symbolic-ref HEAD)" ]
|
||||
then
|
||||
_log "error" "Repository is in detached HEAD state. Please checkout a branch before committing.";
|
||||
_log "error" "Repository is in detached HEAD state. Please make sure you check out a branch. Adjust the `ref` input accordingly.";
|
||||
exit 1;
|
||||
else
|
||||
_log "debug" "Repository is on a branch.";
|
||||
|
@@ -1107,5 +1107,5 @@ END
|
||||
run git_auto_commit
|
||||
|
||||
assert_failure;
|
||||
assert_line "::error::Repository is in detached HEAD state. Please checkout a branch before committing."
|
||||
assert_line "::error::Repository is in detached HEAD state. Please make sure you check out a branch. Adjust the `ref` input accordingly."
|
||||
}
|
||||
|
Reference in New Issue
Block a user