-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
pre-commit install fails with no .pre-commit-config.yaml in root directory #44
Comments
yeah the caching code requires the pre-commit configuration to be at the conventional place |
For anyone working with this action that runs into a similar situation and finds this, you can work around it by copying or symlinking your pre-commit config file to the root project directory within the github workflow. Note the specific file name is required, with For example, my original workflow from the issue description could be updated like:
|
|
I have my .pre-commit-config.yaml file in a specific directory for my github actions.
While I can specify this config file location using
extra_args
, the installation of pre-commit fails.I don't see a way to deal with this in the documentation, or while having a quick peek at the implementation.
My github workflow configuration:
The relevant logging during the workflow failure:
Thanks for pre-commit and this action!
The text was updated successfully, but these errors were encountered: