-
Notifications
You must be signed in to change notification settings - Fork 23
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
fail (exit code) there is an error #345
Comments
Can you add some more details to reproduce your use case. |
@jcook-uptycs just curious if you have this working as pre-commit hook? |
Kind of. The pre-commit supplies for ACTION in {files}
do
echo "Action file found: ${ACTION}"
ACTION_README=$(dirname "${ACTION}")/README.md
touch "${ACTION_README}"
pushd "$(dirname "${ACTION}")" || exit 1
npx -y action-docs --update-readme --no-banner || exit 1
popd || exit 1
done |
It would be real helpful to have a command line option to give the path of an |
I'm looking at using action-docs as a pre-commit hook. It would be kind of nice to have the tool fail (exit with non zero) if there is an issue.
For example there is no readme.
The text was updated successfully, but these errors were encountered: