DETROIT — Tyler Collins snapped an 0-for-30 skid in style, hitting two home runs for the Detroit Tigers in a 5-4 victory over the Baltimore Orioles on Wednesday night.

Collins hit a solo homer in the second inning and a three-run shot in the fifth, giving Detroit’s offense a boost while Miguel Cabrera sat out with a sore left side. Michael Fulmer (5-1) wasn’t at his best, allowing three earned runs and 10 hits in seven innings, but the Tigers gave him enough support.

Justin Wilson allowed two baserunners in the ninth but retired Adam Jones and Manny Machado for his third save in four chances. Machado struck out to end it when first-base umpire C.B. Bucknor ruled he swung at the final pitch. Machado, who had tried to check his swing, slammed his helmet down in frustration after the call.

RAYS 7, INDIANS 4: Corey Dickerson hit a three-run homer – his third homer in two days – and Alex Cobb controlled Cleveland over seven innings as Tampa Bay completed its most successful trip in a year.

Dickerson connected in the second inning off Josh Tomlin (2-5) and Logan Morrison hit a solo shot in the third for Tampa Bay, which went 4-2 on a swing through Boston and Cleveland. It’s the Rays’ first winning trip since last May.

Cobb (4-3) allowed three runs and six hits. He retired the last eight batters he faced.

NATIONAL LEAGUE

PIRATES 6, NATIONALS 1: Gerrit Cole shut down the best offense in the majors, holding the visiting Nationals to three hits in seven innings to win for the first time in a month.

Cole (2-4) struck out three, walked two and received an overdue dose of support when Josh Bell smacked a three-run home run in the sixth off Jacob Turner (2-2). Andrew McCutchen went 2 for 4 with two RBI and also stole two bases for Pittsburgh.

DODGERS 6, GIANTS 1: Clayton Kershaw took a share of the major league lead with his seventh win and earned career victory No. 20 against the rival Giants, helping Los Angeles avoid a sweep at San Francisco.

Kershaw (7-2) struck out five in seven shutout innings and retired the first 10 batters he faced before Justin Ruggiano’s fourth-inning single.

DIAMONDBACKS 5, METS 4: Chris Herrmann homered off Rafael Montero leading off the 11th inning, giving Arizona a win at Phoenix and sending New York to its seventh straight loss.

Montero (0-3) relieved to start the 11th, and Hermann worked the count full, fouled off a pitch and connected on a belt-high fastball for his first game-ending homer.

INTERLEAGUE

ASTROS 3, MARLINS 0: Lance McCullers allowed no earned runs for the third start in a row, and Houston completed a three-game sweep at Miami.

McCullers limited Miami to three hits in six innings.

Jose Altuve hit his first two triples of the year, doubled twice and had an RBI.

BRAVES 8, BLUE JAYS 4: Kurt Suzuki hit a three-run homer to cap a six-run first inning, and host Atlanta held on after Freddie Freeman left with an injury.

Freeman was struck on the left wrist by a pitch in the fifth inning. Freeman headed to the clubhouse with no immediate word on the seriousness of the injury.

RANGERS 9, PHILLIES 3: Andrew Cashner finally won in his home state of Texas, pitching seven solid innings to help the Rangers match the longest winning streak in the majors this year at eight games.

The right-hander from the Houston area also got his first win with the Rangers, who scored all nine runs in the first five innings.