From 4ef0218d3ce278c7aa34d451a3cefd0dd189c44f Mon Sep 17 00:00:00 2001 From: Russell Cousineau Date: Wed, 17 Jan 2024 09:42:09 -0800 Subject: [PATCH] key warning styling via the word warning --- out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/out b/out index aeedeae..f0aa40b 100644 --- a/out +++ b/out @@ -60,7 +60,7 @@ style=$(evaluate "$(jq -r '.params.style // "default"' < "${payload}")") # or in the text_output if we didn't find it in the title [[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (pass|succeed|success) ]] && style="good" [[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (fail) ]] && style="attention" -[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (error) ]] && style="warning" +[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (error|warning) ]] && style="warning" DIR="${BASH_SOURCE%/*}" if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi