The Los Angeles Dodgers clinched a playoff spot for the sixth consecutive season Saturday afternoon, using an RBI triple from Manny Machado to break an eighth-inning tie en route to a 10-6 victory over the host San Francisco Giants.

Sep 29, 2018; San Francisco, CA, USA; Los Angeles Dodgers starting pitcher Clayton Kershaw (22) delivers against the San Francisco Giants during the fourth inning of a Major League Baseball game at AT&T Park. D. Ross Cameron-USA TODAY Sports

The Dodgers overcame a rare subpar effort from Clayton Kershaw to officially eliminate St. Louis from contention in the National League wild-card race. The Cardinals had won earlier in the day against the Chicago Cubs to temporarily stay alive.

Later in the evening, Los Angeles tied Colorado atop the NL West after the Rockies fell at home against Washington. The winner of the division will face Atlanta in the NL Division Series, while the runner-up will meet the Cubs or Milwaukee in the wild-card game on Tuesday night.

After the Giants had rallied into a 5-5 tie with a two-run fifth inning against Kershaw, the Dodgers got their go-ahead run in the eighth after Chris Taylor led off with a single off Mark Melancon (1-4). Two outs and a wild pitch later, Machado went the other way for a triple high off the wall in right field, easily plating Taylor with the go-ahead run.

Nationals 12, Rockies 2

Trea Turner and Juan Soto homered, and Washington knocked Colorado out of sole possession of first place in the National League West with a big win at Denver.

Nolan Arenado and Carlos Gonzalez homered for the Rockies, who suffered their first loss in nine games.

Rockies outfielder David Dahl went 0-for-3, ending his homer streak at five games.

Cardinals 2, Cubs 1

Right-hander Miles Mikolas remained unbeaten in September with eight strong innings, but St. Louis was later eliminated from postseason contention despite its victory at Chicago.

Matt Carpenter broke a 1-1 fifth-inning tie with an RBI single for the Cardinals, who were seeking a return to the postseason after a two-year absence.

With the loss, the Cubs are now tied with Milwaukee in the duel for the National League Central title. The Brewers edged Detroit later in the evening.

Brewers 6, Tigers 5

Christian Yelich hit two home runs, including a go-ahead solo shot, as Milwaukee moved into a first-place tie in the National League Central with a tight win over visiting Detroit.

Yelich, who drove in three runs, also homered in the series opener on Friday. His upper-deck blast off Daniel Stumpf (1-5) gave the Brewers a 6-5 lead in the seventh.

Erik Kratz drove in two runs, and Jonathan Schoop added two hits, a run scored and an RBI. Joakim Soria (3-4) tossed a scoreless inning of relief for his second victory in as many games. Jeremy Jeffress struck out the side in the ninth to notch his 15th save.

Yankees 8, Red Sox 5

Rookie Gleyber Torres hit the record-setting 265th home run of the season in the fourth inning for New York in a win at Boston.

Torres hit the homer into the right-center-field seats with two outs in the fourth inning when he drove a 1-1 fastball from Eduardo Rodriguez (12-5) into the Boston bullpen above the short right-center-field wall. Torres’ drive broke the previous record set by the 1997 Seattle Mariners, who were led by Hall of Famer Ken Griffey Jr.’s 56 homers.

Giancarlo Stanton and Greg Bird delivered RBI doubles before Torres homered as the Yankees reached 100 wins for the first time since 2009 and 20th time in team history. Stanton later added his 38th homer leading off the seventh against Steven Wright.

Mets 1, Marlins 0 (13 innings)

Longtime Mets third baseman David Wright played in his final major league game and went 0-for-1 with a walk before exiting in the top of the fifth of New York’s 13-inning win over visiting Miami.

Austin Jackson’s walk-off RBI double scored Michael Conforto and finally capped a marathon that lasted four hours and 14 minutes.

Wright jogged out to third base for the fifth, but manager Mickey Callaway exited the dugout to pull Wright for Amed Rosario. A teary-eyed Wright waved to all sections of Citi Field and hugged teammates standing in front of the dugout before heading down the steps. He exited for one more curtain call before disappearing into the clubhouse.

Twins 8, White Sox 3

Johnny Field doubled and singled in a six-run second inning, propelling Minnesota past Chicago at Minneapolis.

Right-hander Kyle Gibson (10-13) became a double-digit winner for the fourth time in the last five seasons, limiting the White Sox to one run and three hits in six innings. He struck out seven.

Gibson struck out Yoan Moncada and Yolmer Sanchez to start the game, bringing the White Sox’s single-season whiff total as a team to a record 1,572. Milwaukee had set the previous mark last year.

Astros 4, Orioles 3 (Game 1)

Carlos Correa lined a tiebreaking double in the top of the ninth inning to give Houston the victory over host Baltimore in the first game of a doubleheader.

The game was tied at 3-3 when the Astros started a two-out rally against Baltimore left-hander Sean Gilmartin (1-1). George Springer drew a walk, and Correa then lined a 3-1 pitch into the gap in right-center. Springer was able to score from first without drawing a relay throw.

Will Harris (5-3) threw a scoreless eighth inning and took the victory. Hector Rondon came on in the ninth and closed it for his 15th save.

Astros 5, Orioles 2 (Game 2)

Myles Straw, Brian McCann and Jake Marisnick all homered as Houston swept its doubleheader at Baltimore.

Astros starter Dallas Keuchel went just three innings in his final start of the season. He gave up one run and came away with a no-decision as the Astros apparently were getting ready for the playoffs and wanted others to throw -- six pitchers worked overall in this game.

Brad Peacock (3-4) threw a scoreless fourth inning and earned the victory. Ryan Pressly took care of the ninth for his second save, and he now has a scoreless streak of 21 straight games.

Rays 4, Blue Jays 3

Austin Meadows hit the go-ahead home run in the seventh inning, C.J. Cron also had a solo shot and Tampa Bay edged Toronto at St. Petersburg, Fla.

Rays starter Blake Snell struck out 10 in five innings, allowing one run, three hits and four walks, but did not factor in the decision. A leading candidate for the American League Cy Young Award, the left-hander lowered his ERA to 1.89 for the season.

Sergio Romo struck out three to earn his 25th save of the season despite allowing a pinch-hit home run to Reese McGuire with one out in the ninth. Rays pitchers had 18 strikeouts.

Reds 3, Pirates 0

Michael Lorenzen pitched 5 2/3 scoreless innings, and Eugenio Suarez homered to lead Cincinnati past visiting Pittsburgh.

Relievers David Hernandez (1 1/3 innings), Jared Hughes (one inning) and Raisel Iglesias (one inning, 30th save) joined Lorenzen (4-2) in putting together a six-hit shutout for Cincinnati, which ended a six-game losing streak.

Pirates starter Jameson Taillon (14-10) struck out seven and walked none in six innings. He allowed three runs and seven hits. He finished his season with a string of 22 straight starts allowing three earned runs or fewer.

Phillies 3, Braves 0

Cesar Hernandez drove in two runs with a bases-loaded single in the seventh inning as Philadelphia snapped a nine-game losing streak with a shutout of visiting Atlanta.

The outburst was enough to give the win to starting pitcher Aaron Nola (17-6). The right-hander fired seven shutout innings, allowing two hits and four walks. He struck out eight.

Nola finished the season with 224 strikeouts. Hector Neris pitched the eighth inning, and Seranthony Dominguez worked the ninth to earn his 15th save in 19 opportunities.

Royals 9, Indians 4

Adalberto Mondesi smacked a tiebreaking three-run home run in the sixth inning, and Kansas City went on to beat visiting Cleveland.

Whit Merrifield went 2-for-4 with a two-run double to match his career-best hitting streak of 19 games. Merrifield also stole two bases to take over the major-league-lead with 44 as the Royals won for the fifth time in six games.

Jose Ramirez went 3-for-4 with a homer, and Melky Cabrera had two hits for the American League Central champion Indians.

Diamondbacks 5, Padres 4

Ildemaro Vargas hit his first major league home run and had three RBIs, and Zack Godley held the Padres to three runs over six innings, leading Arizona to victory at San Diego.

Vargas, who was a Triple-A Pacific Coast League All-Star, gave the Diamondbacks a 1-0 lead with an RBI single in the second, then hit a two-run homer off Padres starter Jacob Nix (2-5) in the fourth for a 4-0 advantage.

Godley (15-11) yielded five hits and two walks with five strikeouts. Yoshihisa Hirano pitched a perfect ninth to record his third save.

Athletics 5, Angels 2

Khris Davis hit his major-league-leading 48th home run, and Jed Lowrie also homered and drove in two runs to lead Oakland over Los Angeles at Anaheim, Calif.

Davis, who also upped his RBI total to 123, tied Hall of Famer Jimmie Foxx (1933) for the fourth best single-season home run total in A’s history. Foxx also holds the team record with 58 in 1932, followed by Mark McGwire, who had 52 in 1996 and 49 in 1987.

Trevor Cahill (7-4) picked up the victory for Oakland, allowing an unearned run and one hit over four innings. He walked one and struck out two. Blake Treinen notched his 38th save.

Mariners 4, Rangers 1

Dee Gordon’s two-out triple in the seventh inning brought home the go-ahead run as Seattle downed visiting Texas.

The Mariners evened the season series with the last-place Rangers at 9-9 with one game left. Seattle has a winning record against every other team in the American League West this season.

Nick Vincent (4-4) got the victory. Fellow right-hander Edwin Diaz struck out the side in the ninth for his major-league-leading 57th save of the season.