There was an error while loading. Please reload this page.
1 parent 9d8abff commit 7a791b8Copy full SHA for 7a791b8
1 file changed
.github/actions/build-dotnet/action.yml
@@ -243,12 +243,14 @@ runs:
243
Build-DotNetSolutionOrProject @switches
244
}
245
246
+ Write-Output "Starting `"dotnet build`" as a separate job that must finish within $timeoutMinutes minutes."
247
+
248
$job = Start-Job -ScriptBlock $block -ArgumentList $switches
249
$completed = Wait-Job -Job $job -Timeout ($timeoutMinutes * 60)
250
251
if ($completed -eq $null)
252
{
- Write-Output "::error::The dotnet build job timed out."
253
+ Write-Output "::error::The `"dotnet build`" job did not finish within $timeoutMinutes minutes."
254
$job | Stop-Job | Remove-Job
255
exit 1
256
0 commit comments