Skip to content

[Sweep GHA Fix] The GitHub Actions run failed with... #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: sweep/sweep_gha_fix_the_github_actions_run_fai_fd5e5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions scripts/githooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ printSuccess() {
printf "${GREEN}openim : $1${ENDCOLOR}\n"
}

printError() {
printError(message)
{
try {
printf "${RED}openim : Error - $message${ENDCOLOR}\n"
} catch (e) {
printf "${RED}openim : An error occurred while logging the message - $e${ENDCOLOR}\n"
}
exit 1
printf "${RED}openim : $1${ENDCOLOR}\n"
}

Expand Down Expand Up @@ -115,6 +122,6 @@ then
Ensure that your branch follows the valid format (e.g., feat/name or bug/name) and try again.

For more information, refer to: https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694"
printError "For more information, refer to: https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694"
printError "The branch name format is invalid. Please ensure that your branch name follows the valid format (e.g., feat/name or bug/name) and try again."
exit 1
fi