Thanks for the query.
According to your description there is possibility of premature uterine contractions.
Which can cause decreased oxygen
supply to the fetus leading to passage of meconium.
So when there is associated premature rupture of membranes
that meconium will come out as greenish discharge.
So you consult your gynecologist as early as possible and get speculum examination and ultraSound
done which can rule out above factors.