– The Associated Press

NEW YORK – Andy Pettitte stopped the Orioles once again, Eduardo Nunez returned with a go-ahead hit and the New York Yankees beat Baltimore 5-4 Saturday for their season-high sixth straight win.

The Yankees overcame Chris Davis’ major league-leading 33rd home run and yet another double from Manny Machado, celebrating his 21st birthday. The Orioles have lost 4 of 5 games.

The 41-year-old Pettitte (6-6) earned his 251st win, tying Hall of Famer Bob Gibson for 44th place on the all-time list.

Pettitte persevered on a hot, sticky day, hanging in after the Orioles took an early 3-0 lead. He got a big cheer when he trotted off with two outs in the seventh inning after exactly 100 pitches, and ended a four-start winless string.

Overall, Pettitte is 28-6 against the Orioles. Mariano Rivera earned his 29th save.

TWINS 6, BLUE JAYS 0: Brian Dozier hit a three-run home run, and Mike Pelfrey and three relievers combined for a four-hitter for Minnesota at Toronto.

RAYS 3, WHITE SOX 0: Matt Moore won his fourth consecutive start to help host Tampa Bay beat All-Star selection Chris Sale and Chicago.

ROYALS 4, ATHLETICS 3: Jarrod Dyson delivered an infield single with the bases loaded and two outs in the eighth inning, giving host Kansas City a scrappy victory over Oakland.

TIGERS 9, INDIANS 4: Outfielder Torii Hunter fell a single shy of the cycle as he tripled in the first inning, doubled in a run in the fourth and launched a two-run home run in the sixth as Detroit won at Cleveland.

ASTROS 9, RANGERS 5: Jason Castro hit a tiebreaking three-run homer hours after being chosen for his first All-Star team, and Houston won at Arlington, Texas.

NATIONAL LEAGUE

CARDINALS 5, MARLINS 4: Miami right fielder Giancarlo Stanton’s error allowed Jon Jay to score from first base with the winning run following a single by pinch-hitter Shane Robinson.

Edward Mujica (1-1) worked a scoreless ninth for the host Cardinals.

GIANTS 4, DODGERS 2: Madison Bumgarner drove in two runs and struck out nine in seven innings as San Francisco won at home.

On the day he earned his first All-Star selection, Bumgarner (9-5) retired his first 14 batters. Tim Federowicz’s two-run homer off Bumgarner accounted for each of Los Angeles’ runs.

NATIONALS 5, PADRES 4: Ryan Zimmerman knocked in the go-ahead run and host Washington won its third straight game.

BRAVES 13, PHILLIES 4: Jason Heyward hit a three-run homer to lead an Atlanta offense that scored in all but two innings in a rout at Philadelphia.

BREWERS 7, METS 5: Jonathan Lucroy homered and Yovani Gallardo scattered six hits over six innings, adding two hits and a pair of runs scored to lead host Milwaukee.

CUBS 4, PIRATES 1: Alfonso Soriano hit two-run homers in consecutive innings to lead host Chicago past Pittsburgh, handing the Pirates just their third loss in 14 games.

INTERLEAGUE PLAY

REDS 13, MARINERS 4: Cesar Izturis drove in three runs, matching his season total, and Mat Latos doubled home two more for Cincinnati in a win over visiting Seattle.