Pregnant by FWB

If you've ended up pregnant by your friend with benefits what did you do? I thought this was going to be my situation for moment there (yes I'm on birth control) until I took a test. I didn't know how I was going to tell my family I was pregnant by someone who didn't want a relationship with me (I'm an adult but it would still be embarrassing as they are very judgmental).

I considered all of my options and was leaning towards keeping it even if I'd be a single mother since my friend isn't ready for kids.

Has anyone been in this situation where they actually did end up pregnant? How did it work out?