Skip to content

Commit

Permalink
key warning styling via the word warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rcousineau-xandr committed Jan 17, 2024
1 parent 0c3acb2 commit 4ef0218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ef0218

Please sign in to comment.