From 9f1b3662d94adc7d4bb71d3183d31e29c0ffa81c Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Tue, 12 Sep 2023 21:59:29 +1000 Subject: [PATCH] Don't exclude failed steps, not matter how short their duration --- ww.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ww.sh b/ww.sh index 18d41d1..e622726 100755 --- a/ww.sh +++ b/ww.sh @@ -46,7 +46,8 @@ jq -er --argjson minStepDuration "$MIN_STEP_DURATION" "$(cat <<-"-" def safe(s): s|gsub("[:;#]";""); .jobs[]|"\n section " + safe(.name) + "\n" + ([ .steps[]|select(.completed_at)| - (.+{duration:isodiff(.started_at;.completed_at)})|select(.duration>=$minStepDuration)| + (.+{duration:isodiff(.started_at;.completed_at)})| + select(.duration>=$minStepDuration or .conclusion!="success")| " " + safe(.name) + " :" + if .conclusion != "success" then "crit, " else "" end + .started_at + ", " + (.duration|tostring) + "s"