mirror of
https://github.com/actions/runner.git
synced 2025-12-11 21:06:55 +00:00
Use job execution context instead of step for adding summary attachments (#1667)
* use job exec context to queue/attach summaries * step summary tests: use job ctx and verify against server queue
This commit is contained in:
@@ -317,7 +317,8 @@ namespace GitHub.Runner.Worker
|
||||
var attachmentName = context.Id.ToString();
|
||||
|
||||
Trace.Info($"Queueing file ({filePath}) for attachment upload ({attachmentName})");
|
||||
context.QueueAttachFile(ChecksAttachmentType.StepSummary, attachmentName, scrubbedFilePath);
|
||||
// Attachments must be added to the parent context (job), not the current context (step)
|
||||
context.Root.QueueAttachFile(ChecksAttachmentType.StepSummary, attachmentName, scrubbedFilePath);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user