Green-Flame Blade uses the CAST A SPELL action, not the ATTACK action

Can I use Battle Magic with Green-Flame Blade?