Go through the motions

To do something insincerely.

The manager went through the motions of apologizing but he was not sincere.