People have done studies on how telling other people your goals affects motivation and performance and found that it can have a negative effect. This article links to a few different studies on this:
The Science-Backed Reasons You Shouldn't Share Your Goals
It's pretty interesting to read about since there's so much advice to tell people so you can be held accountable.