NEW YORK — Brett Gardner hit a bases-loaded single in the ninth inning to give the New York Yankees their sixth straight victory, 5-4 over the Tampa Bay Rays on Saturday.

With the game tied at 4, Chase Headley started the ninth with a walk off Brad Boxberger (2-3). Pinch-runner Jacoby Ellsbury stole second and Todd Frazier was hit by a pitch. Adeiny Hechavarria and Tim Beckham miscommunicated on a grounder for the second time in the series to load the bases, prompting a pitching change.

Gardner, who homered in the 11th inning to give the Yankees a 6-5 victory on Thursday, calmly stroked Dan Jennings’ 0-1 fastball up the middle for his second game-winning hit of the series.

ANGELS 6, BLUE JAYS 5: Cliff Pennington drove in the tiebreaking run with a sacrifice fly in the ninth inning and Los Angeles won at Toronto.

The Angels took the lead with a three-run ninth against Roberto Osuna (3-1). Ben Revere hit an RBI double, and pinch-runner Kaleb Cowart scored on a wild pitch, sending Revere to third before Pennington’s sacrifice fly.

TIGERS 5, ASTROS 3: Jose Iglesias hit two RBI doubles, Matt Boyd pitched into the seventh inning and Detroit won at home.

Iglesias’ second run-scoring double tied the game at 3 in the seventh. Ian Kinsler then flared a single to center to give Detroit the lead.

NATIONAL LEAGUE

DODGERS 2, GIANTS 1: Corey Seager had three hits, Cody Bellinger drove in two runs and Los Angeles won at home for its seventh straight victory.

Rich Hill (8-4) pitched two-hit ball into the sixth as the Dodgers won for the 38th time in 44 games.

ROCKIES 4, NATIONALS 2: German Marquez carried a perfect game into the sixth, Trevor Story homered and Colorado won at Washington in a matchup of playoff contenders.

Marquez (9-4) set down his first 16 batters before allowing three hits in a span of four hitters. He struck out a career-high 10 while allowing two runs and three hits in seven innings.

DIAMONDBACKS 7, CARDINALS 1: Paul Goldschmidt homered and drove in three runs, Zack Greinke pitched seven strong innings and Arizona won at St. Louis.

Greinke (13-4) limited the Cardinals to one run and four hits to improve to 5-0 in his last six starts.

MARLINS 7, REDS 3: Adam Conley won consecutive starts for the first time this season, Christian Yelich hit a three-run homer and host Miami sent Cincinnati to its sixth straight defeat.

INTERLEAGUE

MARINERS 3, METS 2: Yovani Gallardo took a shutout into the sixth inning and Seattle beat visiting New York, ending Jacob deGrom’s eight-start winning streak.