From 915aa5f7fbc88e0b2000c07edbcd1337e0448a8e Mon Sep 17 00:00:00 2001 From: kyrylomiro Date: Fri, 16 Feb 2024 11:26:55 +0100 Subject: [PATCH] Adjust starting time statement to parse the case where no message about job is about to start --- pkg/actionsmetrics/event_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/actionsmetrics/event_reader.go b/pkg/actionsmetrics/event_reader.go index 41c2f01050..2d55db34a4 100644 --- a/pkg/actionsmetrics/event_reader.go +++ b/pkg/actionsmetrics/event_reader.go @@ -273,7 +273,7 @@ func (reader *EventReader) fetchAndParseWorkflowJobLogs(ctx context.Context, e * continue } - if strings.HasPrefix(line, "Job is about to start running on the runner:") { + if strings.HasPrefix(line, "Job is about to start running on the runner:") || strings.HasPrefix(line, "Current runner version:") { startedTime, _ = time.Parse(time.RFC3339, timestamp) continue }