Oven won't stay lit

Hi, I read another thread and did all I could think of.

If I put it on broil or bake, after a few second it will spark 4 times igniting on the 1st or second. Immediately after the sparking stop the flame goes back out.

I have checked the broil to common and bake to common, each were about 218 ohms. I pulled out the bake burner and checked it, it has the 4 holes not 8 but if both bake and broil are doing the same thing I doubt that’s the problem.

Any ideas would be appreciated.

After the 4 sparks the gas shuts off.