Run an action after a non zero return code in a csharp script #26
-
I trying to use the commit message linter example to prevent invalid commit messages. It seems if the csharp script returns with a code of I'd like to do something like this:
Is something like this possible? Or some other way to accomplish what I'm trying to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Did you try to use the dotnet husky exec "CsharpScriptPath.csx" --args "$message" I think you don't need the husky |
Beta Was this translation helpful? Give feedback.
Did you try to use the
exec
command directly in the hook?e.g
I think you don't need the husky
run
because it will stop if receives any non-zero exit code. butexec
should work fine.