Unset NODE_ICU_DATA before starting node in NodeHandler. (#1060)

* Unset NODE_ICU_DATA before starting node in NodeHandler.

* Update src/Runner.Worker/Handlers/NodeScriptActionHandler.cs

Co-authored-by: Ross Brodbeck <hross@users.noreply.github.com>

Co-authored-by: Ross Brodbeck <hross@users.noreply.github.com>
This commit is contained in:
Tingluo Huang
2021-04-23 11:10:22 -04:00
committed by GitHub
parent 088caf5337
commit 5941cceb7c

View File

@@ -97,6 +97,9 @@ namespace GitHub.Runner.Worker.Handlers
Encoding outputEncoding = null;
#endif
// Remove environment variable that may cause conflicts with the node within the runner.
Environment.Remove("NODE_ICU_DATA"); // https://github.com/actions/runner/issues/795
using (var stdoutManager = new OutputManager(ExecutionContext, ActionCommandManager))
using (var stderrManager = new OutputManager(ExecutionContext, ActionCommandManager))
{