The power-hitting left fielder just didn't know whether he'd get the green light from third base coach Ron Washington.
"I knew it was in the gap, so run as hard as I can," Riley said. "If he wants to stop me, he'll stop me. He didn't stop me. A good hit by Ozzie and a good team win."
Riley tied the game with a solo homer in the ninth inning and scored the winning run on Albies' double off Michael Feliz in the 11th, leading the Atlanta Braves past the Pittsburgh Pirates 8-7 for their sixth straight victory Wednesday night.
The Braves (39-29) took over sole possession of first place in the NL East and moved 10 games over .500 for the first time this season.
After Riley was hit by a pitch on his left hand in the 11th, Albies drove a gapper into right-center and Riley slid headfirst across the plate to end it.
"As soon as I hit it in the gap," Albies said, "I knew he would score and win this game."
Jacob Webb (4-0) pitched two innings to earn the victory.
Feliz (2-3) took the loss.
Rain delayed the game for 55 minutes in the seventh.
Braves starter Mike Soroka allowed career highs of five runs and 10 hits in five innings. The 21-year-old began the night having given up one run or less in nine of 10 starts this season, but did not factor in the decision. Soroka, whose ERA rose 54 points to 1.92, walked one and struck out three.
Atlanta led 3-0 in the first on Nick Markakis' opposite-field RBI single and Riley's triple. The Braves were up 4-2 in the second after Freddie Freeman's RBI single and 6-2 in the third following Soroka's two-run single.
Pittsburgh made it 3-2 in the second on RBI singles by Adam Frazier and Elias Diaz and 6-4 in the fourth on Kevin Newman's two-run double. Starling Marte's 10th homer cut the margin to 6-5 in the fifth.
"We had our backs against the wall a little bit, but we battled back and gave ourselves a chance," said Bell, who leads the majors with 61 RBI. "It's good mojo going into tomorrow."
Mitch Keller, making his second career start for Pittsburgh, allowed six runs and 10 hits in three innings. His ERA rose 1.93 points to 15.43.
Pirates: Director of sports medicine Tom Tomcyzk said C Francisco Cervelli, on the injured list since May 26 with a concussion, has no symptoms and is scheduled to be re-examined by a neurologist in the next couple of days. Tomcyzk said Cervelli feels normal in everyday life, but has yet to be cleared. The 33-year-old Cervelli has a long history with head injuries during his 12-year career, including six documented concussions since 2011.
Braves: CF Ender Inciarte, on the injured list since May 15 with a lumbar strain, still has no timetable to resume baseball activities. "It's still biting him a bit. I think he has good days, has bad days, taking it a day at a time," manager Brian Snitker said. "He's not in that position now to even look ahead where he might -- until he starts running the bases, hitting and all that stuff."
Braves shortstop Dansby Swanson saved a run in the third. Running into left field, he bumped into third baseman Josh Donaldson a bit as both players pursued the shallow fly. Swanson called off Donaldson and Riley to turn and make a difficult basket catch.
The rookie slugger became the fastest player in franchise history to reach 10 homers, doing so in 26 games to break the mark set by Wally Berger of the Boston Braves in 1930. Riley also tied Earl Torgeson of the 1947 Boston Braves as the quickest to 29 RBI, in 26 games. ... Riley had his left hand wrapped in ice after the game. He said he was sore from getting hit by the pitch, but not in pain.
The Braves signed their first-round draft pick, Baylor catcher Shea Langeliers. Atlanta chose Langeliers with the ninth overall selection, which it received as compensation for not signing last year's No. 8 pick, pitcher Carter Stewart.
Pirates: RHP Joe Musgrove (4-6, 4.40 ERA) starts for the second time in the four-game series after getting ejected in the first inning Monday following a confrontation with Donaldson.
Braves: RHP Julio Teheran (4-3, 3.03) is 2-0 with a 0.70 ERA in his last seven starts.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Dodgers to add former Oakland closer Blake Treinen
Former Oakland closer Blake Treinen will joined the Dodgers with a one-year, $10 million deal, sources said.
Sources: Josh Lindblom agrees to 3-year deal with Brewers
Right-hander Josh Lindblom, who went 20-3 with a 2.50 ERA pitching in South Korea this past season, has agreed to a three-year deal with the Milwaukee Brewers, sources tell ESPN's Jeff Passan.
Sources: Pitcher Tanner Roark, Blue Jays agree to deal
Right-hander Tanner Roark, who went 10-10 with a 4.35 ERA in 31 starts for Cincinnati and Oakland last season, has reached an agreement with the Blue Jays, sources told ESPN.
Investigation into Astros sign-stealing allegations ongoing, Rob Manfred says
MLB commissioner Rob Manfred said Wednesday that nearly 60 witnesses have been interviewed in the ongoing investigation into sign-stealing allegations regarding the Houston Astros. Manfred wouldn't predict how long the investigation will last.
Manfred details ongoing Astros investigation
Rob Manfred gives an update on the investigation into the Astros' sign-stealing, saying they have interviewed nearly 60 witnesses but still have work to do.
Expanded netting at all parks by start of season
MLB commissioner Rob Manfred said that all ballparks will have expanded netting by the start of the season.