Harrison Bader tripled and homered to help the St. Louis Cardinals clinch a postseason berth on the final day of the regular season with a 5-2 win over visiting Milwaukee, and the Brewers also earned a playoff spot Sunday via help on the West Coast moments later.

By winning, the Cardinals avoided having to travel to Detroit for two makeup games Monday. St. Louis finished the regular season with 23 games in 18 days as it made up a slew of postponements caused by a coronavirus outbreak in the clubhouse.

"You had to throw some of the expectations out the window not knowing what to expect after taking those couple weeks off and all those doubleheaders and so many new guys," Cardinals first baseman Paul Goldschmidt said. "It was very different, very fulfilling to make the playoffs."

The Brewers (29-31) locked up a third consecutive postseason berth after the Padres beat the Giants 5-4 in a game that ended about 15 minutes after St. Louis' victory. The Giants finished with an identical record as the Brewers but lost out on a tiebreaker.

The biggest losers Sunday were the Giants and Phillies. As it turned out, either team would've gotten in with a win.