Regarding the wording of the PHB, the action may be good, but the character is still evil.

If you don't cling too much to the exact words, even the action might probably be evil, but that's indeed the gms personal interpretation of the specific case.
But I'd say that it's usually unimportant if an action is good or evil. It's the general outlook of the character that really matters for most things.