Azerbaijanis must be eternally grateful to the upcoming European Games, because aside from all the new limitations imposed on the residents of our country additional changes are made to the public transportation system.
According to these new changes public transportation services will be working close to 20 hours a day. Buses will operate from 5AM until 1AM and metro will work starting from 6AM and until 1AM.
It is likely that during the opening and closing ceremony of the games public transportation services will operate until later hours as well.
Prior to the games, trains ran until midnight while buses until 11pm. For the morning hours, your best bet would take the metro that started working at 6am since buses start running at 7am.