Updated

Yan Gomes doubled in the go-ahead run in the fifth inning, and the Cleveland Indians upended the Baltimore Orioles, 6-4, in the finale of a series between playoff-hopeful clubs.

Gomes and Ryan Raburn each drove in two runs for the Indians, who moved ahead of Baltimore in the wild card standings. Cleveland remained 3 1/2 games behind Tampa Bay for the second wild card spot.

Manny Machado belted a three-run homer and Adam Jones added his 29th of the season for Baltimore, which lost for the fourth time in six contests. The Orioles are four games back of the Rays.

Zach McAllister allowed five hits and four runs over 4 2/3 innings in the start for the Indians. Bryan Shaw (3-3) threw the ensuing inning to get the win, and Chris Perez retired the side in order in the ninth for his 22nd save.

Zach Britton was touched for six hits and four runs over 2 1/3 innings. Kevin Gausman (2-4) suffered the loss for the Orioles, who dropped two of three in the series.

"It's been a tough road trip," Orioles manager Buck Showalter admitted.

The serious nature of a game between playoff contenders had a light moment prior to the first pitch.

Indians pitcher Justin Masterson carried a live chicken onto the field for pregame drills and gave it to teammate Cody Allen. The chicken stayed on the field during batting practice.

"Just so I don't get in trouble, that chicken will be returned safely," Indians manager Terry Francona said after the game. "It wasn't going to be dinner or anything."

Gomes singled in Michael Bourn after the Indians loaded the bases in the first. Raburn, who was activated from the disabled list Tuesday after sitting out with an Achilles injury, sent a two-run double to right field later in the frame.

Mike Aviles followed with a ground RBI single to left to plate Asdrubal Cabrera, but Raburn was thrown out at the plate.

Jones homered to left in the fourth, and the Orioles tied it an inning later on Machado's blast to center.

Gomes' hit to left plated Jason Kipnis in the next inning. After Cabrera was intentionally walked to fill the bases, Carlos Santana scored on a wild pitch from Gausman.

Nate McLouth's single in the sixth represented Baltimore's final base runner.

Game Notes

Gomes had three of Cleveland's 10 hits ... The Indians won the season series, 4-3 ... Baltimore went 1-for-8 with men in scoring position.