mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Update AgentPlatform for job timeline record (#939)
* Update AgentPlatform for job timeline record * removed unused using
This commit is contained in:
@@ -858,6 +858,10 @@ namespace GitHub.Runner.Worker
|
||||
{
|
||||
_record.ParentId = parentTimelineRecordId;
|
||||
}
|
||||
else if (parentTimelineRecordId == null)
|
||||
{
|
||||
_record.AgentPlatform = VarUtil.OS;
|
||||
}
|
||||
|
||||
var configuration = HostContext.GetService<IConfigurationStore>();
|
||||
_record.WorkerName = configuration.GetSettings().AgentName;
|
||||
|
||||
Reference in New Issue
Block a user