This commit is contained in:
eric sciple
2020-01-13 20:05:09 -05:00
parent ece9b6d04b
commit 8ecc737c6b

View File

@@ -309,12 +309,6 @@ namespace GitHub.Runner.Worker
Result = result;
}
// update context
if (!string.IsNullOrEmpty(ContextName))
{
StepsContext.SetConclusion(ScopeName, ContextName, Result.Value.ToContextData());
}
// report total delay caused by server throttling.
if (_totalThrottlingDelayInMilliseconds > 0)
{
@@ -348,6 +342,12 @@ namespace GitHub.Runner.Worker
_logger.End();
// update context
if (!string.IsNullOrEmpty(ContextName))
{
StepsContext.SetConclusion(ScopeName, ContextName, Result.Value.ToContextData());
}
return Result.Value;
}