mirror of
https://github.com/actions/runner.git
synced 2025-12-11 21:06:55 +00:00
fix bug w checkout v1 updating GITHUB_WORKSPACE (#704)
This commit is contained in:
committed by
TingluoHuang
parent
6607453761
commit
73271539cf
@@ -103,12 +103,6 @@ namespace GitHub.Runner.Worker
|
|||||||
bool evaluateStepEnvFailed = false;
|
bool evaluateStepEnvFailed = false;
|
||||||
if (step is IActionRunner actionStep)
|
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
|
// Set GITHUB_ACTION
|
||||||
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
|
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user