Skip to content

Commit 7a791b8

Browse files
committed
Log timeoutMinutes.
1 parent 9d8abff commit 7a791b8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/build-dotnet/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ runs:
243243
Build-DotNetSolutionOrProject @switches
244244
}
245245
246+
Write-Output "Starting `"dotnet build`" as a separate job that must finish within $timeoutMinutes minutes."
247+
246248
$job = Start-Job -ScriptBlock $block -ArgumentList $switches
247249
$completed = Wait-Job -Job $job -Timeout ($timeoutMinutes * 60)
248250
249251
if ($completed -eq $null)
250252
{
251-
Write-Output "::error::The dotnet build job timed out."
253+
Write-Output "::error::The `"dotnet build`" job did not finish within $timeoutMinutes minutes."
252254
$job | Stop-Job | Remove-Job
253255
exit 1
254256
}

0 commit comments

Comments
 (0)