-
Notifications
You must be signed in to change notification settings - Fork 96
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: fatal: not a git repository when no .gitattributes file is present #32
Comments
Dirty fix - add empty |
Can you please describe the overall workflow you're looking for here? I think I understand it from looking but I'd rather you tell me than have me making guesses :) It is on my mind to add an example workflow to attach proper ZIP files to the GH releases as well, I just haven't gotten into what kind of changes or additions might need to be made to support that. |
Sure @helen! So my process looks like this:
So this is the build process the rest of the workflow jobs are depending on. This way the plugin is built once, not in every job. So then each action looks like this:
Your action is failing because it needs either I hope it clears the things out! |
Because there's no git checkout, it fails here: https://github.com/10up/action-wordpress-plugin-deploy/blob/develop/entrypoint.sh#L82 |
Yes, I can see the technical reason why this would fail, it began with For the moment, I'm curious about There is a related issue in #30 where people are building into directories and want to deploy from there, so I think from a technical perspective these should probably be solved together. |
I think it could be named What won't work is the assets directory, I think I have to checkout git either way and fire up the build once again or pull the EDIT: ended up with this workflow and we'll see |
I think I might be missing something here - the very first step in your stable workflow is a checkout. I think what renaming that file would mean is that you would run this action from the checkout directory rather than the build one, and actually I am not sure I entirely understand how this is running out of the build directory in the first place? Or if it even is? People in #30 would probably like to know. In my simplified view, this is what I think would work assuming you renamed
|
I seem to have bumped into the same bug. The line
(extra lines due to debugging with The funny thing is that this code is identical in the deploy and asset update actions. For the same repository, only the deploy fails (and asset update action succeeds). Could it be that Github Actions do something special about tag pushes, leaves .git away or? |
@ottok You're missing the line |
Yes, I am using a fork so I can debug.
|
Confirm: I saw this bug because the line Maybe @Kubitomakita's problem in https://github.com/BracketSpace/Notification-Signature/blob/2111b3057efe3120f4a7e4dc249ec853e8e443d5/.github/workflows/stable.yml#L97-L113 is that he is using artifacts built from the repo, and not the git repo itself? |
It is indeed. I ended having a classic workflow, with git checkout, build and this action and it's working fine. See: https://github.com/BracketSpace/Notification/runs/563654808?check_suite_focus=true But still would be good to get it working with artifact |
Describe the bug
When there are no
.gitattributes
nor.distignore
files present in the build, the action fails.Please see the action log.
Steps to Reproduce
I'm using a build process that already puts all the clean files into a separate directory and starts the WP.org release from there. So I have only the files which need to be picked up.
Expected behavior
It just passes with all the files.
The text was updated successfully, but these errors were encountered: