And when did this happen?
Doesn't really sound like any risk of pregnancy.
Just wait and see if your next period comes.
I'm no doctor, but it would seem as if there was no penetration and no ejaculate entered the vagina, you'd have very little to worry about.
No, you wouldn't have a risk for pregnancy.