-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: exit 1 when logging error messages #606
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doing exit 1
when we are loggin an error makes sense... however have you checked that you are not logging anywhere else with ERROR
level?
Alternatively, you could do that exit optionally using another argument (force_exit
maybe?)
Other than that, it looks good to me.
It looks like the other locations logging with ERROR are _doc-build-windows and _doc-build-linux when it's unable to determine the PDF filename using the conf.py file. If being unable to determine the PDF filename isn't a dealbreaker & the action can still pass without it, I think the logging level for those cases should change to WARNING instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM For the doc-build
actions I think it's great to have this early exit because if the error logs are triggered, it means that the job using the action will fail fore sure.
It would break further steps in the action if one triggers any of the error log. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Releasing this change |
Add check to see if bot user or email inputs are empty. If so, log an error message & exit 1. Exiting 1 when logging an error message was applied to the _logging action.
Exit 1 on error
Bot secrets exist, so no error
Closes #603