When recording an action, "Copy Shape Attributes" does not get recorded. Doesn't seem to work for Copy Fill from the gear menu in the shape tool color picker either.
Create a new action and start recording.
Right click on shape layer in layer palette and choose "Copy Layer Style". Note that it gets added to the action.
Right click on the same shape layer and choose "Copy Shape Attributes. Note that it does NOT get added to the action.