Expose whether debug is on/off via RUNNER_DEBUG. (#253)

This commit is contained in:
Tingluo Huang
2020-01-03 21:23:46 -05:00
committed by GitHub
parent ac1a076a3b
commit 06292aa118

View File

@@ -107,6 +107,11 @@ namespace GitHub.Runner.Worker
return await CompleteJobAsync(jobServer, jobContext, message, TaskResult.Failed);
}
if (jobContext.WriteDebug)
{
jobContext.SetRunnerContext("debug", "1");
}
jobContext.SetRunnerContext("os", VarUtil.OS);
string toolsDirectory = HostContext.GetDirectory(WellKnownDirectory.Tools);