(AP Photo/Patrick Semansky). Baltimore Orioles' Jonathan Schoop, right, and Manny Machado celebrate in front of New York Yankees first baseman Greg Bird after Schoop hit a game-winning single in the ninth inning of a baseball game, Tuesday, July 10, 20...
(AP Photo/Patrick Semansky). Baltimore Orioles' Manny Machado gestures as he rounds the bases on his two-run home run in the seventh inning of a baseball game against the New York Yankees, Tuesday, July 10, 2018, in Baltimore.
(AP Photo/Patrick Semansky). Baltimore Orioles' Manny Machado watches his two-run home run in the seventh inning of a baseball game against the New York Yankees, Tuesday, July 10, 2018, in Baltimore.
(AP Photo/Patrick Semansky). Baltimore Orioles' Joey Rickard doubles in the fourth inning of a baseball game against the New York Yankees, Tuesday, July 10, 2018, in Baltimore. Chris Davis and Trey Mancini scored on the play.
(AP Photo/Patrick Semansky). New York Yankees starting pitcher Masahiro Tanaka, of Japan, throws to the Baltimore Orioles in the second inning of a baseball game, Tuesday, July 10, 2018, in Baltimore.
By DAVID GINSBURG AP Sports Writer
BALTIMORE (AP) - There's no telling how long the Baltimore Orioles will have Manny Machado on their side, so they're going to enjoy it while they can.
Machado hit two home runs, Jonathan Schoop singled in the winning run with two outs in the ninth inning, and Baltimore rallied past the New York Yankees 6-5 Tuesday night.
With his contract due to expire after this season and the Orioles seemingly unwilling to pony up the money to keep him in Baltimore, Machado appears destined to be shipped to another team before the July 31 non-waiver trade deadline.
"It crosses my mind, I'm not going to lie," Machado said. "You just try to enjoy your moment, try to enjoy the season like I have since Day 1. You try to take it all in. Nobody ever wants to think about that day."
Especially Schoop, who considers Machado his closest friend on the team.
"You hear the rumors, but I don't want to think about it," Schoop said. "I just want to go out there and enjoy him while we can."
Machado had a solo shot in the fifth and a two-run homer in the seventh, giving him 23 for the season. He's the AL All-Star starter at shortstop, and playing like it.
"He's a great hitter. That's what great hitters do," New York's Aaron Judge said. "They do damage and score runs. We weren't able to keep him at bay."
Greg Bird homered and drove in four runs for the Yankees, who dropped 3 1/2 games behind first-place Boston in the AL East.
After Machado brought the Orioles back from deficits of 3-2 and 5-3, Schoop won it in the ninth against Dellin Betances (1-3).
A hit batter, a double by Adam Jones and an intentional walk to Machado loaded the bases with one out. After Mark Trumbo struck out, Schoop hit a bouncer that glanced off the glove of Bird at first base and into right field.
Zach Britton (1-0) worked the ninth for Baltimore.
New York is an inexplicable 4-5 against the Orioles and 55-26 against everyone else.
"It doesn't matter how they've been playing, they take good at-bats against us," Yankees reliever Chad Green said. "They pitch pretty well. Just one of those things."
Orioles starter Andrew Cashner gave up five runs and five hits in 6 1/3 innings. He has gone eight straight starts without a victory.
After retiring the first 13 Yankees in order, Cashner gave up a single, issued a walk and yielded a home run to Bird.
Machado homered on the first pitch in the bottom half to tie it at 3.
The pattern continued in the seventh. After Bird hit a sacrifice fly and Neil Walker singled in a run, Machado made it 5-all with an opposite-field drive to right off Green.
Machado has five multihomer games this season and 19 for his career.
Coming off the disabled list after being sidelined for a month with two sore hamstrings, Yankees starter Masahiro Tanaka allowed three runs in 4 1/3 innings. He was pulled, as planned, after throwing 80 pitches.
Yankees: 2B Gleyber Torres (hip) will begin to ramp up baseball activities this week, manager Aaron Boone said. The hope is that Torres returns soon after the All-Star break. ... C Gary Sanchez (groin) participated in batting practice. Boone says the club will map out a rehab stint of at least one game with a timeline for a return similar to that of Torres.
Orioles: OF Jace Peterson sat out the game after bruising his knee in a collision with the wall on Monday night. ... RHP Chris Tillman (back) allowed four earned runs over 6 1/3 innings for Class A Frederick. He will likely get one more rehab start before the Orioles decide if they want him back in the majors, where he's 1-5 with a 10.46 ERA this season.
The Orioles recalled LHP Donnie Hart from Triple-A Norfolk and selected the contract of RHP Jhan Marinez from Norfolk. Baltimore optioned RHPs Ryan Meisinger and Yefry Ramirez to Norfolk after both pitched multiple innings Monday.
Yankees: Struggling Sonny Gray (5-7, 5.85 ERA) will start the series finale on Wednesday night. Gray failed to get past the third inning in his last two starts, leaving open the possibility of a demotion to the bullpen. "I had to bad starts in a row. It's no secret," he said. "But at the end of the day I get a chance to compete, a chance to go out there and try to win a baseball game."
Orioles: With a victory Wednesday, Dylan Bundy (6-8, 4.08) will own more than a quarter of Baltimore's wins.
More AP baseball: https://apnews.com/tag/MLBbaseball
Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.