-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
[BUG] <Error: Can't find local .git directory> #1840
Comments
Hi @bbaral07 can you provide details of your workflow file. Include sections of both the checkout action and the changed-files action |
Hi @bbaral07 I'll suggest specifying the correct You can search for "Get all changed files for a repository located in a different path" in the Examples section. |
Hallo Jackton1,
|
Hi @bbaral07, thanks for sharing a couple of things to point out.
Question: Is there a reason you have set Request: To fully get to a solution. Can you include the debug logs of the workflow not a picture or snippet but if possible the entire logs. To obtain the debug logs you’ll need to rerun the workflow and ensure debug logging is enabled prior to rerunning the workflow. |
Thanks, Jackton01 for your response. Though I could not use it, I truly appreciate the purpose and functionality of this action. |
Sounds good, FYI the changed-files action doesn't only check that the .git folder exists but also validates the output of
If you run into this issue in the future this would help you determine what's wrong. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Error: Can't find local .git directory. Please run actions/checkout before this action
To Reproduce
In the github work flow, (using Github Enterprise);
But after checkout when it runs the changed files action, it gives the following error:::
Have checked the repo,
it contains the .git folder.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
should return the changed files list.
Relevant log output
Has all relevant logs been included?
Anything else?
Code of Conduct
The text was updated successfully, but these errors were encountered: