fix bug w checkout v1 updating GITHUB_WORKSPACE (#704)

This commit is contained in:
eric sciple
2020-09-14 12:00:00 -04:00
committed by TingluoHuang
parent 6607453761
commit 73271539cf

View File

@@ -103,12 +103,6 @@ namespace GitHub.Runner.Worker
bool evaluateStepEnvFailed = false;
if (step is IActionRunner actionStep)
{
// Shallow copy github context
var gitHubContext = step.ExecutionContext.ExpressionValues["github"] as GitHubContext;
ArgUtil.NotNull(gitHubContext, nameof(gitHubContext));
gitHubContext = gitHubContext.ShallowCopy();
step.ExecutionContext.ExpressionValues["github"] = gitHubContext;
// Set GITHUB_ACTION
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);