ANAHEIM, Calif. (AP) -- Cole Irvin pitched six solid innings to earn his first victory in four weeks, and the Oakland Athletics kept pace in the AL wild-card race with a 5-4 victory over the Los Angeles Angels on Friday night.

Josh Harrison had two RBIs and Mark Canha scored the go-ahead run on a passed ball in the sixth for the A's (80-67), who won their third straight and remained 2 1/2 games out of the final wild-card spot. Oakland kept pace with the Yankees (83-65) and gained a game on Toronto (82-65), which lost to Minnesota and dropped a half-game behind New York for the second slot.

Oakland committed three errors in the first two innings, stranded 10 runners in the first six innings and didn't have an extra-base hit. The A's still manufactured enough runs to win against a makeshift Angels pitching staff.

And Oakland's defense finally came through late, courtesy of Starling Marte. The center fielder threw out Kean Wong for the final out of the eighth after the Angels' pinch-runner foolishly tried to go from first to third on Luis Rengifo's single. Marte also made a nice running catch on Brandon Marsh's deep line drive for the second out of the ninth.

Irvin (10-13) yielded seven hits and struck out three, allowing just one earned run despite giving up his sixth homer in four starts.

Sergio Romo pitched the ninth for his third save, and first since Sept. 2.

Kurt Suzuki homered and David Fletcher had a two-run single for the Angels, who opened their final homestand of another disappointing season with their seventh loss in 11 games.

Jhonathan Diaz didn't get out of the second inning after becoming the 12th pitcher and fourth starter to make his major league debut this season for the Angels, who have used a franchise-record 63 players in 2021. The Venezuelan left-hander only made three appearances at Triple-A, going 0-3 for Salt Lake, before getting this unlikely promotion.

Diaz, who walked four A's and hit a batter, was chased after giving up Harrison's RBI single and Matt Olson's sacrifice fly in the second.

But the Angels started a four-run rally in the second with Suzuki's solo homer and extended it on errors by Harrison and Irvin.

Shortly after Oakland tied it on pinch-hitter Seth Brown's RBI groundout in the sixth, Canha ran home when Suzuki couldn't catch Jose Marte's pitch to Matt Chapman.

Marte (0-1) issued the ninth walk in the first six innings by Los Angeles pitchers.

SHOHEI THROWS

Diaz is up because the Angels decided to push back the scheduled start of two-way superstar Shohei Ohtani, who had arm soreness. Ohtani threw a 30-pitch bullpen Friday, and the Angels announced during the game he will start Sunday against the A's.

FOUR MONTHS

Mike Trout marked the four-month anniversary of his most recent appearance for the Angels by accepting a pregame award for his nomination for the Roberto Clemente Award. The three-time AL MVP is highly unlikely to play again this season due to his strained calf muscle.

TRAINER'S ROOM

Athletics: SS Elvis Andrus wasn't in the starting lineup after getting hit by a pitch on his left foot Sunday. ... RHP Chris Bassitt will throw to hitters Tuesday in Anaheim. He is returning from a facial fracture after getting hit by a line drive Aug. 17.

Angels: RHP Dylan Bundy (right shoulder strain) isn't likely to pitch again this season, manager Joe Maddon said. Bundy had an awful, injury-plagued year that will cost him many millions heading into free agency. He posted a 6.06 ERA and 1.36 WHIP after 3.29 and 1.04 marks last season.

UP NEXT

Jose Suarez (7-7, 3.59 ERA) goes for his third consecutive victory in his first outing at Angel Stadium since throwing the Halos' only complete game of the season on Sept. 4. James Kaprielian (7-5, 4.02 ERA) pitches for Oakland.