"Every tick" is a System event, you add it on the event sheet.
Try just copying+pasting this code to your event sheet:
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"every-tick","objectClass":"System"},{"id":"evaluate-expression","objectClass":"System","parameters":{"value":"LayoutAngle<180"}}],"actions":[{"id":"set-layout-angle","objectClass":"System","parameters":{"angle":"min(layoutAngle+90*dt, 180)"}}]}]}
I don't need to rotate sprite.
It will rotate the layout, not a sprite. I suggest trying the second method with Tween behavior.