This commit is contained in:
John Sudol
2023-03-06 22:05:27 +00:00
committed by GitHub
parent 6cdd031970
commit ec0e6c72eb

View File

@@ -69,7 +69,8 @@ namespace GitHub.Runner.Worker.Expressions
//Feature flag to fetch a new version of hashFiles script //Feature flag to fetch a new version of hashFiles script
string hashFilesScript = string.Empty; string hashFilesScript = string.Empty;
var isGlobHashFilesEnabled = executionContext.Global.Variables.GetBoolean("DistributedTask.UseGlobHashFiles") ?? false; var isGlobHashFilesEnabled = executionContext.Global.Variables.GetBoolean("DistributedTask.UseGlobHashFiles") ?? false;
if(isGlobHashFilesEnabled){ if (isGlobHashFilesEnabled)
{
hashFilesScript = Path.Combine(binDir, "hashFilesV2"); hashFilesScript = Path.Combine(binDir, "hashFilesV2");
} }
hashFilesScript = Path.Combine(binDir, "hashFiles"); hashFilesScript = Path.Combine(binDir, "hashFiles");