Yankees designated hitter Carlos Beltran is greeted by first base coach Mick Kelleher as he rounds the bases after hitting the game-winning three-run home run against the Orioles. (Julie Jacobson/Associated Press)

The Orioles managed almost no offense Friday night. Their starting pitcher tied a career high with six walks. And yet they almost pulled out a victory.

But this is Yankee Stadium, where bad things often happen to the Orioles.

True to form Friday night, Carlos Beltran hit a two-out, three-run homer to left field against Orioles closer Zach Britton to give New York a 5-3, walk-off win.

“You’re one good pitch away,” Britton said. “Keeping the ball down, I can get out of that inning.”

Britton, who had allowed just one hit in his previous five outings, gave up two singles and a walk before serving up the 96-mph fastball to Beltran on a 3-1 count.

Britton hadn’t lost so far this season. It was just his second homer allowed in 2014.

“It’s a fine margin of error,” Orioles Manager Buck Showalter said. “Tonight, he wasn’t able to make the last pitch that a lot of three-up, three-down [innings he has]. It’s not an easy job. And he’s been doing it at a very high level. And hopefully will again.”

The Orioles (37-35) dropped two games behind the Yankees (39-33) in the American League East. The teams are 2-2 against each other at Yankee Stadium, where the Orioles have a losing record in 15 of their past 16 seasons.

Ubaldo Jimenez finished one out shy of picking up his second consecutive quality start — by definition anyway (three runs or fewer in six innings or more). But it was far from a quality outing for the Orioles’ highest-paid hurler.

Jimenez pitched into the sixth and allowed just one first-inning run. But he issued a season-high six walks in 52 / 3 innings, and on three different occasions loaded the bases without, somehow, yielding a run.

— Baltimore Sun