Skip to content

Commit 8b2a23e

Browse files
authored
Add 'retry' tag in workflow metrics (#32)
1 parent e3b19fd commit 8b2a23e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

report_github_metrics.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ def collect_workflow_metrics(workflow_run, jobs, tags)
2828
else
2929
"failure"
3030
end
31+
is_retry = workflow_run["run_attempt"] > 1
3132
[[
3233
"workflow_duration",
3334
finish - start,
34-
tags + ["status:#{status}"]
35+
tags + ["status:#{status}","retry:#{is_retry}"]
3536
]]
3637
end
3738

0 commit comments

Comments
 (0)