Answer :

Contradict might be the word you are looking for

the first word that came to mind was also contradict. When one contradicts themselves they do the opposite of what they said they were going to do.