mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Expose whether debug is on/off via RUNNER_DEBUG. (#253)
This commit is contained in:
@@ -107,6 +107,11 @@ namespace GitHub.Runner.Worker
|
|||||||
return await CompleteJobAsync(jobServer, jobContext, message, TaskResult.Failed);
|
return await CompleteJobAsync(jobServer, jobContext, message, TaskResult.Failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jobContext.WriteDebug)
|
||||||
|
{
|
||||||
|
jobContext.SetRunnerContext("debug", "1");
|
||||||
|
}
|
||||||
|
|
||||||
jobContext.SetRunnerContext("os", VarUtil.OS);
|
jobContext.SetRunnerContext("os", VarUtil.OS);
|
||||||
|
|
||||||
string toolsDirectory = HostContext.GetDirectory(WellKnownDirectory.Tools);
|
string toolsDirectory = HostContext.GetDirectory(WellKnownDirectory.Tools);
|
||||||
|
|||||||
Reference in New Issue
Block a user