That was a decision made by CDU and FPD, the greens were not in the government at the time.
Germany also added twice the amount of renewables than it ever had in nuclear power. And that is despite the heavy hits against the industry that the late Merkel governments landed, after boosting them for a while in the early ones.
After 16 years of CDU being in charge, yelling at the greens about today's situation is not just ignorant, it's a fake news attack on democracy.