From your description this is considered pre ejaculation which is a clear liquid. This would not invalidate your fast. However you should turn away from this action and turn towards Allah. When we are fasting it is not only refraining from food and drink but also we fast with our eyes, ears, tongue and limbs by staying away from those things Allah would disapprove of.
May Allah help us all.