mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +00:00
Compare commits
3 Commits
v2.287.1
...
fhammerl/f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b183ce236d | ||
|
|
216e1b5643 | ||
|
|
44157b5234 |
@@ -581,17 +581,17 @@ namespace GitHub.Runner.Listener
|
|||||||
IOUtil.CopyDirectory(Path.Combine(latestRunnerDirectory, Constants.Path.ExternalsDirectory), externalsVersionDir, token);
|
IOUtil.CopyDirectory(Path.Combine(latestRunnerDirectory, Constants.Path.ExternalsDirectory), externalsVersionDir, token);
|
||||||
|
|
||||||
// copy and replace all .sh/.cmd files
|
// copy and replace all .sh/.cmd files
|
||||||
Trace.Info($"Copy any remaining .sh/.cmd files into runner root.");
|
Trace.Info($"DISABLED");
|
||||||
foreach (FileInfo file in new DirectoryInfo(latestRunnerDirectory).GetFiles() ?? new FileInfo[0])
|
// foreach (FileInfo file in new DirectoryInfo(latestRunnerDirectory).GetFiles() ?? new FileInfo[0])
|
||||||
{
|
// {
|
||||||
string destination = Path.Combine(HostContext.GetDirectory(WellKnownDirectory.Root), file.Name);
|
// string destination = Path.Combine(HostContext.GetDirectory(WellKnownDirectory.Root), file.Name);
|
||||||
|
|
||||||
// Removing the file instead of just trying to overwrite it works around permissions issues on linux.
|
// // Removing the file instead of just trying to overwrite it works around permissions issues on linux.
|
||||||
// https://github.com/actions/runner/issues/981
|
// // https://github.com/actions/runner/issues/981
|
||||||
Trace.Info($"Copy {file.FullName} to {destination}");
|
// Trace.Info($"Copy {file.FullName} to {destination}");
|
||||||
IOUtil.DeleteFile(destination);
|
// IOUtil.DeleteFile(destination);
|
||||||
file.CopyTo(destination, true);
|
// file.CopyTo(destination, true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
stopWatch.Stop();
|
stopWatch.Stop();
|
||||||
_updateTrace.Enqueue($"CopyRunnerToRootTime: {stopWatch.ElapsedMilliseconds}ms");
|
_updateTrace.Enqueue($"CopyRunnerToRootTime: {stopWatch.ElapsedMilliseconds}ms");
|
||||||
@@ -1060,6 +1060,8 @@ namespace GitHub.Runner.Listener
|
|||||||
arguments: $"\"{hashFilesScript.Replace("\"", "\\\"")}\"",
|
arguments: $"\"{hashFilesScript.Replace("\"", "\\\"")}\"",
|
||||||
environment: env,
|
environment: env,
|
||||||
requireExitCodeZero: false,
|
requireExitCodeZero: false,
|
||||||
|
outputEncoding: null,
|
||||||
|
killProcessOnCancel: true,
|
||||||
cancellationToken: token);
|
cancellationToken: token);
|
||||||
|
|
||||||
if (exitCode != 0)
|
if (exitCode != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user