You can use Orbit behavior, in latest betas it has two expressions: Sprite.Orbit.TotalAbsoluteRotation and Sprite.Orbit.TotalRotation
Or you can do something like this:
Touch is touching Sprite
Sprite compare variable ang<360
Sprite Add 1 to variable ang
Sprite set angle to ang
Sprite compare variable ang>=360
Sprite set angle to 0
Sprite play animation "name"