Remove debugging messages

This commit is contained in:
Ethan Chiu
2020-07-27 11:01:28 -04:00
parent faf826d15a
commit 3393f3991c
4 changed files with 0 additions and 14 deletions

View File

@@ -135,9 +135,6 @@ namespace GitHub.Runner.Worker
ExecutionContext.SetGitHubContext("event_path", workflowFile);
}
var gitHubActionPath = ExecutionContext.GetGitHubContext("action_path");
Trace.Info($"githubactionpath: {gitHubActionPath}");
// Setup container stephost for running inside the container.
if (ExecutionContext.Global.Container != null)
{

View File

@@ -274,7 +274,6 @@ namespace GitHub.Runner.Worker
{
envContext[pair.Key] = new StringContextData(pair.Value ?? string.Empty);
}
step.ExecutionContext.ExpressionValues["env"] = envContext;
return step;
@@ -421,7 +420,6 @@ namespace GitHub.Runner.Worker
ArgUtil.NotNullOrEmpty(name, nameof(name));
var githubContext = ExpressionValues["github"] as GitHubContext;
githubContext[name] = new StringContextData(value);
Trace.Info($"GitHub Context: {StringUtil.ConvertToJson(githubContext)}");
}
public string GetGitHubContext(string name)

View File

@@ -57,7 +57,6 @@ namespace GitHub.Runner.Worker.Handlers
}
// Set GITHUB_ACTION_PATH
Trace.Info($"ActionDirectory: {ActionDirectory}");
ExecutionContext.SetGitHubContext("action_path", ActionDirectory);
foreach (Pipelines.ActionStep actionStep in actionSteps)
@@ -68,9 +67,6 @@ namespace GitHub.Runner.Worker.Handlers
actionRunner.Condition = actionStep.Condition;
var step = ExecutionContext.CreateCompositeStep(childScopeName, actionRunner, inputsData, Environment);
// step.ExecutionContext.ExpressionValues["github"] = ExecutionContext.ExpressionValues["github"] as GitHubContext;
compositeSteps.Add(step);
}

View File

@@ -265,11 +265,6 @@ namespace GitHub.Runner.Worker.Handlers
{
foreach (var env in runtimeContext.GetRuntimeEnvironmentVariables())
{
if (runtimeContext is GitHubContext)
{
Trace.Info($"gh context key: {env.Key}");
Trace.Info($"gh context Value: {env.Value}");
}
Environment[env.Key] = env.Value;
}
}