-
-
Notifications
You must be signed in to change notification settings - Fork 307
Description
I was using GitHub Actions with the gameci unity builders, and I had an issue with the build not going forward as it complained that the branch is dirty. After googling around for a while I came across this #241 where the op had nearly the same problem as me. The workaround was to use allowDirtyBuild, which wasn't recommended, so I tried to look for something else going wrong. I spotted a mention that the error message should tell me what files are the dirty ones, and so I went and looked at the error message a bit closer.
Apparently the semantic versioning build script creates an Editor folder under Assets (presumably for a custom build script). Now, I don't have an Editor folder inside Assets, as I haven't had the need for one (yet). Unity then creates an Editor.meta for that folder, and whatever method you use to sense modifications that won't dirty the repository (if it's simply .gitignore, then yeah you can't really add Editor.meta to .gitignore), doesn't realize that the build script was the reason the repo was dirtied.
So the workaround was to create Editor folder in the Asset folder for my project, and commit the Editor.meta. And thus the build went forward.
I'm posting this here in case someone else is having the same problem, as there wasn't a lot of relevant info about this (at least that I found) except issue #241 as previously mentioned. Also, sorry if I categorized this wrong, as I'm not really sure if this is a bug, but it's something that isn't (at least obviously - or I just missed it) said in the documentation either.