Skip to content

Commit

Permalink
Adjust starting time statement to parse the case where no message abo…
Browse files Browse the repository at this point in the history
…ut job is about to start
  • Loading branch information
kyrylomiro committed Feb 16, 2024
1 parent db13bb6 commit 915aa5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/actionsmetrics/event_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 915aa5f

Please sign in to comment.