Print out resolved SHA for each action. (#1233)

This commit is contained in:
Tingluo Huang
2021-08-02 12:59:09 -07:00
committed by GitHub
parent 85ce33b1d3
commit bd1341e580
2 changed files with 4 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ namespace GitHub.Runner.Listener.Configuration
}
else
{
Trace.Info("Found a self-hosted runner group with id {1} and name {2}", agentPool.Id, agentPool.Name);
Trace.Info($"Found a self-hosted runner group with id {agentPool.Id} and name {agentPool.Name}");
runnerSettings.PoolId = agentPool.Id;
runnerSettings.PoolName = agentPool.Name;
}

View File

@@ -703,7 +703,7 @@ namespace GitHub.Runner.Worker
// make sure we get a clean folder ready to use.
IOUtil.DeleteDirectory(destDirectory, executionContext.CancellationToken);
Directory.CreateDirectory(destDirectory);
executionContext.Output($"Download action repository '{downloadInfo.NameWithOwner}@{downloadInfo.Ref}'");
executionContext.Output($"Download action repository '{downloadInfo.NameWithOwner}@{downloadInfo.Ref}' (SHA:{downloadInfo.ResolvedSha})");
}
await DownloadRepositoryActionAsync(executionContext, downloadInfo, destDirectory);
@@ -1263,7 +1263,7 @@ namespace GitHub.Runner.Worker
public class ActionSetupInfo
{
public ActionContainer Container { get; set; }
public List<Pipelines.ActionStep> Steps {get; set;}
public List<Pipelines.ActionStep> Steps { get; set; }
}
public class PrepareActionsState