SAN DIEGO (AP) — Sean Manaea allowed only one hit in six shutout innings and the San Diego Padres wrapped up the fifth seed in the NL playoffs, beating the San Francisco Giants 6-2 on Tuesday night.

Wil Myers homered and drove in two runs for the Padres. They got the second wild-card spot with the victory and Philadelphia’s 10-0 loss at Houston. San Diego will travel to New York for a a best-of-three set at the fourth-seeded Mets, starting Friday night.

Manaea (8-9) stuck out six. San Francisco starter Alex Cobb (7-8) allowed a run on seven hits in five innings.

Myers hit a solo homer in the eighth, his second homer run in the past two games. Ha-Seong Kim added a two-run double and Manny Machado and Austin Nola each had RBI singles. The Padres took command with a four-run sixth inning.

San Diego outhit San Francisco 14-4, but the Padres stranded 19 runners to the Giants’ nine.