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 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.PoolId = agentPool.Id;
runnerSettings.PoolName = agentPool.Name; runnerSettings.PoolName = agentPool.Name;
} }

View File

@@ -241,7 +241,7 @@ namespace GitHub.Runner.Worker
state.PreStepTracker[action.Id] = actionRunner; state.PreStepTracker[action.Id] = actionRunner;
} }
// Embedded Step // Embedded Step
else else
{ {
if (!_cachedEmbeddedPreSteps.ContainsKey(parentStepId)) if (!_cachedEmbeddedPreSteps.ContainsKey(parentStepId))
{ {
@@ -703,7 +703,7 @@ namespace GitHub.Runner.Worker
// make sure we get a clean folder ready to use. // make sure we get a clean folder ready to use.
IOUtil.DeleteDirectory(destDirectory, executionContext.CancellationToken); IOUtil.DeleteDirectory(destDirectory, executionContext.CancellationToken);
Directory.CreateDirectory(destDirectory); 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); await DownloadRepositoryActionAsync(executionContext, downloadInfo, destDirectory);
@@ -1263,7 +1263,7 @@ namespace GitHub.Runner.Worker
public class ActionSetupInfo public class ActionSetupInfo
{ {
public ActionContainer Container { get; set; } public ActionContainer Container { get; set; }
public List<Pipelines.ActionStep> Steps {get; set;} public List<Pipelines.ActionStep> Steps { get; set; }
} }
public class PrepareActionsState public class PrepareActionsState