Andrew Huberman discusses that sharing goals can prematurely release dopamine, reducing motivation to achieve them, as the brain already feels rewarded just by talking about the goals.
I generally counter this by not being motivated to begin with. Once you share your goals you then just kind of have to push through out of pride or simply to keep your job.