read env file (#683)

This commit is contained in:
eric sciple
2020-08-29 23:18:35 -04:00
committed by GitHub
parent 9976cb92a0
commit 3a76a2e291
6 changed files with 541 additions and 17 deletions
+6
View File
@@ -103,6 +103,12 @@ 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);