How would that achieve 180 degrees of rotation?
The drawing is just a conceptional one, so the location and length of the crank arm, as well as the spring, need to be adjusted. The length of the lunge is an important factor that affect the crank arm length and position. Specifically, the length of the lunge must be equal to the chord of the arc that the crank arm travels. And if the crank arm part is shorter, then the rotating part will need a shorter length of the linear actuator's travel to cause the turn. Unless you are comfortable with the math involved, it is probably easier to just make a test model using cardboard or perhaps foam (or alternatively a CAD system). Then play with some of the geometries.
Also, the mechanism I drew would realistically only achieve 170 deg, not a full 180. If you really want the 180 deg, you might consider adding a motor at the end of the linear actuator. Though, that is more expense, and you either have to trigger the rotation motor separately, or perhaps if the rotation motor is slower than the linear actuator, you can trigger both at the same time.
Below is the same mechanism i drew, but I just positioned its starting point differently.
-Joe