If an effect forces you to use an action to end it, you can instead replace one of your weapon attacks to have the same benefit.

For example: You can replace one weapon attack to try to escape a grapple, or to wake up a creature under the sleep spell.