New York’s Brett Gardner follows through on a two-run double during a four-run eighth inning that carried the Yankees to a 7-3 victory over the Baltimore Orioles on Saturday. (Jim Mcisaac/Getty Images)

Baltimore Manager Buck Showalter knows his pitching staff well, but on Saturday he might have stayed with Wade Miley too long in the Orioles’ most important game of the year.

Miley went into the seventh inning having thrown 99 pitches, but with the season on the line, a fresh bullpen and the possibility of clinching a wild-card spot later in the night, an otherwise fine outing was suddenly spoiled.

The Orioles were on their way to forcing the Toronto Blue Jays and Detroit Tigers to win in order to deny Baltimore a playoff berth before New York rookie Tyler Austin took Miley deep with a game-tying solo homer to open the seventh inning, and the Yankees rallied for four runs in the eighth off Brad Brach, sending the Orioles to a frustrating 7-3 loss in front of an announced crowd of 33,222 at Yankee Stadium.

Michael Bourn’s two-run single in the second and Manny Machado’s solo homer in the third gave the Orioles an early 3-0 lead as Miley allowed just two hits over his first four innings, but the Yankees scored a run in the fifth and sixth innings before Austin homered to open the seventh.

Chase Headley’s RBI double capped New York’s two-out rally in the sixth, but Miley stranded two runners in scoring position to end the inning.

Brett Gardner’s two-run double off Oliver Drake — scoring two inherited runners that were charged to Brach — highlighted the Yankees’ eighth-inning uprising.

— Baltimore Sun