Updated

Chris Carter homered leading off the bottom of the 10th inning to give the Houston Astros a 5-4 victory over the Arizona Diamondbacks on Thursday night.

Carter, who homered twice on Wednesday, hit his 13th homer of the season into the Crawford Boxes in left field off J.J. Putz (1-1).

Miguel Montero tied it at 4-4 in the ninth with a home run to left field on the first pitch by closer Chad Qualls.

Carlos Corporan had a two-run home run and Jon Singleton homered and drove in two runs for the Astros, who have won six of their last eight games.

Tony Sipp (1-0) struck out one in a scoreless 10th for the win.

Singleton drove in a run with a sacrifice fly in the first inning and broke a 1-all tie with his solo shot to right field in the third. Corporan extended Houston's lead to 4-1 with his home run to left field in the fourth.

Chris Owings hit a solo homer to get Arizona within 4-3 in the seventh inning.

Houston second baseman Jose Altuve was hit on the right hand by a pitch in the seventh inning. The American League leader in hits and stolen bases appeared to be in a lot of pain as he left the game. There was no immediate word on his injury.

David Peralta singled for Arizona's first hit with one out in the third inning. Ender Inciarte reached on an error by Altuve that left Peralta at third and he scored on a sacrifice fly by Didi Gregorius to tie it at 1-1.

Enciarte was shaken up in that inning when he took a knee to the head from Jonathan Villar while stealing second base. He remained in the game but was replaced by Cody Ross in the bottom of the sixth as a precaution.

Springer had two nifty defensive plays. The first one came when he sprinted from right field to center and dived to make the catch on a ball hit by Owings for the first out of the fifth.

Springer made another excellent diving catch on a fly ball by Martin Prado to start a double play to end the eighth. Paul Goldschimdt was on second and had almost reached home when Springer caught it, allowing Villar to step on second base to end the inning.

The Astros celebrated "Drake Day" on Thursday with the Grammy Award-winning rapper attending the game and talking to students from the Astros Urban Youth Academy before the game. Each player came up to bat to music by the rapper and Singleton chose the tune "All Me."

Seconds after the music trailed off with one out in the third inning, Singleton caught all of a 90 mph fastball from Wade Miley and launched a towering homer into the second deck in right field to give Houston a 2-1 lead.

Astros starter Scott Feldman plunked Gregorius to start the sixth inning and Goldschmidt hit a double with one out, before Gregorius scored on a wild pitch with two outs to cut the lead to 4-2.

Miley yielded seven hits and four runs with eight strikeouts in five innings.

Feldman bounced back from a tough outing in his last start to allow four hits and three runs — two earned — in 6 1-3 innings.

NOTES: The Diamondbacks acquired INF/C Jordan Pacheco from the Rockies and designated INF/OF Nick Evans for assignment before the game. ... Arizona manager Kirk Gibson said he doesn't expect OF Mark Trumbo, who has been out since April 22 with a stress fracture in his left foot, to return to full baseball activities for at least three more weeks. ... The Astros traded minor league OF Adron Chambers to Toronto for prospects LHP Alejandro Solarte and INF Will Dupont. ... Houston signed 3B J.D. Davis, a third-round pick in this year's draft.