clang-format-action
clang-format-action copied to clipboard
Action always fails on folders whose name ends on .h or any other C-like suffix
Title says it all. Don't ask why we have folders named like that, and no, we physically cannot change the names =)
Just speculating like that, I imagine that adding a test to the find invocation like -type f (limit search to type that are files) would do the trick.
https://github.com/jidicula/clang-format-action/blob/bbe2072f30239fd9ebf4b8cfc666d8a7a64ac951/check.sh#L96-L97
It cannot be before the -prune -o, (the -o is "or"), but can be somewhere in there
I didn't evaluate if there are some undesirable side effects in the current situation though.