You can set Loop=No in animation and add this event:
Sprite On Animation "foo" finished
Character is animation "Run" playing -> Sprite start "foo" animation play from beginning
This will restart animation only if character continues to run.
Instead of Character is animation "Run" playing you can use "Character Platform is moving" or "Keyboard Right is down" or a similar condition.