Austin Riley hit a game-tying home run in the eighth inning then drove in the go-ahead run in the 13th with a two-out single off Reyes Moronta, lifting the Atlanta Braves past the San Francisco Giants 5-4 on Thursday.