mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-04-20 00:39:45 +08:00
Improve Error Message
This commit is contained in:
parent
ad56d4eb46
commit
1d986f74dd
@ -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."
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user