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

@@ -241,7 +241,7 @@ namespace GitHub.Runner.Worker
state.PreStepTracker[action.Id] = actionRunner;
}
// Embedded Step
else
else
{
if (!_cachedEmbeddedPreSteps.ContainsKey(parentStepId))
{
@@ -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