SAN FRANCISCO — Harrison Bader hit a tiebreaking homer in the decisive sixth inning after Madison Bumgarner homered in the bottom of the fifth, and the St. Louis Cardinals beat the San Francisco Giants 7-3 on Sunday to gain ground again in the wild-card race.

Paul DeJong hit a solo homer in the fourth for the first St. Louis hit and Jose Martinez followed with a drive to nearly the same spot over the left-field fence. It was the seventh time the Cardinals hit consecutive homers this year.

Luke Weaver (4-1) struck out nine over seven innings to just miss a third straight start with double-digit Ks, helping St. Louis move within three games of Colorado for the NL's second wild card.

___

More AP baseball: https://apnews.com/tag/MLBbaseball