Follow KDKA-TV: Facebook | Twitter

CHICAGO (AP) — Shortly after their playoff spot was assured, the Chicago Cubs beat the Pittsburgh Pirates 7-6 Wednesday night when Albert Almora Jr. hit a game-ending single with two outs in the 10th inning.

The NL Central-leading Cubs clinched their fourth straight postseason appearance earlier in the evening when Milwaukee beat St. Louis. The Brewers, who sealed a playoff slot with their win, are a half-game behind Chicago – one of them will win the NL Central, the other will play in the NL wild-card game next Tuesday.

adam frazier 1041441808 Pirates Lose 7 6 In 10 Innings As Cubs Clinch Playoff Spot

(Photo Credit: David Banks/Getty Images)

After Pittsburgh tied it in the ninth on a two-out, two-run double by Starling Marte, the Cubs bounced back to win.

Ian Happ led off the 10th with a walk and was replaced by pinch-runner Terrance Gore. Mike Freeman’s sacrifice moved up Gore, and he took third on a groundout. Almora singled to left on an 0-2 pitch from Richard Rodriguez (4-3).

Jason Heyward homered and drove in three runs for the Cubs. Javier Baez singled for his NL-leading 111th RBI as the Cubs won after blowing a five-run lead. Star third baseman Kris Bryant didn’t play because of a bruised left wrist.

Jose Osuna and Corey Dickerson homered for Pittsburgh.

Brandon Kintzler (3-3) got the only batter he faced in the top of the 10th to hit into a double play.

The Cubs led by five and still took a 6-2 lead into the eighth behind solid pitching from Jose Quintana and Jesse Chavez, but the rest of the relievers struggled.

Carl Edwards Jr. started the eighth, but was yanked after walking two of the three batters he faced. After retiring the first batter he faced, Steve Cishek gave up a walk and a two-run single to Elias Diaz to make it 6-4. Following an intentional walk to load the bases, Cishek got Pablo Reyes to ground out to end the threat.

Chicago wasn’t as fortunate in the ninth.

With a runner on first and one out, pinch-hitter Francisco Cervelli doubled off the wall in right. Justin Wilson got Adam Frazier on a popup and appeared on the verge of getting out of it, but Marte hit a liner that hit off first baseman Anthony Rizzo’s glove and rolled down the line for a tying double.

Pirates starter Ivan Nova was roughed up for six runs and eight hits in four innings.

TRAINER’S ROOM

Pirates: RHP Edgar Santana (elbow) will undergo Tommy John surgery soon and is expected to miss the entire 2019 season. The 26-year-old Santana is 3-4 with a 3.26 ERA in 69 games this season.

Cubs: 3B Bryant sat out a day after being hit in the wrist by a pitch, but manager Joe Maddon is optimistic the injury won’t linger. “It’s sore, like you would have anticipated,” Maddon said. “But, he thought, the swelling wasn’t as heavy as we anticipated.”

UP NEXT

Cubs ace LHP Jon Lester (17-6, 3.43 ERA) faces RHP Trevor Williams (14-9, 3.04) in the finale of the four-game series Thursday night. Lester is 5-1 with a 1.96 ERA in his last seven starts, while Williams has allowed a total of eight earned runs in his last 12 starts for an ERA of 1.00 during that span.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)