mirror of
https://github.com/actions/runner.git
synced 2026-01-03 00:17:49 +08:00
Remove debugging messages
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user