Expose ENV for cache service v2. (#3548)

This commit is contained in:
Tingluo Huang
2024-11-12 14:56:24 -05:00
committed by GitHub
parent d16fb2c593
commit 694ae12b23

View File

@@ -72,6 +72,11 @@ namespace GitHub.Runner.Worker.Handlers
Environment["ACTIONS_RESULTS_URL"] = resultsUrl;
}
if (ExecutionContext.Global.Variables.GetBoolean("actions_uses_cache_service_v2") ?? false)
{
Environment["ACTIONS_CACHE_SERVICE_V2"] = bool.TrueString;
}
// Resolve the target script.
string target = null;
if (stage == ActionRunStage.Main)