Pinch hitter Jedd Gyorko connected for a three-run homer during St. Louis' four-run eighth inning, helping the Cardinals top the Atlanta Braves 6-3 on Saturday night.

Paul Goldschmidt and Matt Carpenter each had three hits as St. Louis improved to 7-15 in May. The Cardinals (26-25) were in danger of falling below the .500 mark for the first time since April 7.

Andrew Miller (2-2) worked a scoreless eighth for the win, and Jordan Hicks got three outs for his 10th save.

St. Louis Cardinals' Jordan Hicks, left, and Paul Goldschmidt celebrate following a baseball game against the Atlanta Braves, Saturday, May 25, 2019, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Jordan Hicks, left, and Paul Goldschmidt celebrate following a baseball game against the Atlanta Braves, Saturday, May 25, 2019, in St. Louis. (AP PhotoJeff Roberson)

The Braves wasted another solid performance by Mike Soroka, who allowed two runs, one earned, and five hits in six innings. The rookie right-hander has allowed one earned run or less in his first eight starts this season.

St. Louis Cardinals' Paul Goldschmidt (46) is out at second buts Atlanta Braves shortstop Dansby Swanson, right, is unable to turn a double play during the eighth inning of a baseball game Saturday, May 25, 2019, in St. Louis. Cardinals' Paul DeJong was safe at first. (AP PhotoJeff Roberson)

St. Louis Cardinals' Paul Goldschmidt (46) is out at second buts Atlanta Braves shortstop Dansby Swanson, right, is unable to turn a double play during the eighth inning of a baseball game Saturday, May 25, 2019, in St. Louis. Cardinals' Paul DeJong was safe at first. (AP PhotoJeff Roberson)

Atlanta Braves' Ozzie Albies smiles after hitting an RBI-double during the seventh inning of a baseball game against the St. Louis Cardinals, Saturday, May 25, 2019, in St. Louis. (AP PhotoJeff Roberson)

Atlanta Braves' Ozzie Albies smiles after hitting an RBI-double during the seventh inning of a baseball game against the St. Louis Cardinals, Saturday, May 25, 2019, in St. Louis. (AP PhotoJeff Roberson)