Skip to content

Commit

Permalink
Print out resolved SHA for each action. (actions#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Aug 2, 2021
1 parent 85ce33b commit bd1341e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Runner.Listener/Configuration/ConfigurationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public async Task ConfigureAsync(CommandSettings command)
}
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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Runner.Worker/ActionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public sealed class ActionManager : RunnerService, IActionManager
state.PreStepTracker[action.Id] = actionRunner;
}
// Embedded Step
else
else
{
if (!_cachedEmbeddedPreSteps.ContainsKey(parentStepId))
{
Expand Down Expand Up @@ -703,7 +703,7 @@ private async Task DownloadRepositoryActionAsync(IExecutionContext executionCont
// 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);
Expand Down Expand Up @@ -1263,7 +1263,7 @@ public class ActionContainer
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
Expand Down

0 comments on commit bd1341e

Please sign in to comment.