Commit 68e45d7 1 parent 38332e1 commit 68e45d7 Copy full SHA for 68e45d7
File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,16 @@ private async Task DownloadLatestRunner(CancellationToken token)
189
189
var isMockUpdate = StringUtil . ConvertToBoolean ( Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS_RUNNER_IS_MOCK_UPDATE" ) ) ;
190
190
if ( isMockUpdate )
191
191
{
192
- int waitInSeconds = 20 ;
193
- while ( ! Debugger . IsAttached && waitInSeconds -- > 0 )
192
+ var waitForDebugger = StringUtil . ConvertToBoolean ( Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS_RUNNER_IS_MOCK_UPDATE_WAIT_FOR_DEBUGGER" ) ) ;
193
+ if ( waitForDebugger )
194
194
{
195
- await Task . Delay ( 1000 ) ;
195
+ int waitInSeconds = 20 ;
196
+ while ( ! Debugger . IsAttached && waitInSeconds -- > 0 )
197
+ {
198
+ await Task . Delay ( 1000 ) ;
199
+ }
200
+ Debugger . Break ( ) ;
196
201
}
197
- Debugger . Break ( ) ;
198
202
// the runner-mock-versions.txt file should be of format
199
203
// v2.281.2
200
204
// v2.283.0
You can’t perform that action at this time.
0 commit comments