When finding out joyous tidings or upon hearing good news from a reliable source, one says a Bracha.
If it only affects oneself, then one says שֶׁהֶחֱיָנוּ; "... who has kept us alive, sustained us and permitted us to reach this occasion."
Even if the joyful event will probably cause one trouble at a later date, one still says the Bracha.
Source: Kitzur Shulchan Aruch 59:1,3
Monday, 2 Tammuz 5774