Washington state parks announced they will remain open, after lawmakers came to an agreement on a new state budget.

Washington State Parks and Recreation Commission shared the good news on Facebook Friday evening, saying "a government shutdown has been averted."

The agency had planned on closing all parks Friday in the event of a potential partial government shutdown, even after Governor Jay Inslee said lawmakers had reached a budget deal “in principle.”

Despite that announcement, state agencies were told to continue with their shutdown contingency plans, which included closing state parks ahead of the Friday night budget deadline.

But Thursday afternoon the governor’s office requested parks remain open, even with the risk of a shutdown.

Lawmakers reached a deal Friday, and the governor signed it Friday night.

If a budget had not been approved, the state would have gone into a partial government shutdown.

More than 40 agencies were told to prepare for full or partial shutdowns.