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
'Tonight was vintage Anibal': How the overlooked Nationals starter flipped the NLCS
Anibal Sanchez's bid to make history gave Washington a Game 1 win and a reminder that he's a reason the Nationals reached the NLCS.
Source: Johnny Washington among candidates for Angels' job
Johnny Washington, the 35-year-old hitting coach for the San Diego Padres, is among the candidates for the Los Angeles Angels' managerial vacancy, a source confirmed to ESPN on Friday.
Nats' Scherzer aims to keep Cards down in Game 2
The Washington Nationals gained the early National League Championship Series edge over the St. Louis Cardinals, and they will look to build on it behind Max Scherzer in Game 2.
Cardinals Game 1 starter Miles Mikolas says gesture mimicking Nationals OF Juan Soto was 'good-natured'
Cardinals pitcher Miles Mikolas had fun with Juan Soto's batting routine by mimicking one of his gestures after getting the Nationals outfielder to ground out.
Howard: The scales have tipped in Washington's favor
Ryan Howard breaks down what was working for Anibal Sanchez in the Nationals' Game 1 win and believes they have all the momentum to win the series.
Sanchez: It's good people don't pay attention to me
Anibal Sanchez says he's glad people pay more attention to Max Scherzer, Stephen Strasburg and Patrick Corbin because he can fly under the radar and perform better.