diff --git a/.github/actions/test-adoc/action.yml b/.github/actions/test-adoc/action.yml index c477a0285..3ec944b9d 100644 --- a/.github/actions/test-adoc/action.yml +++ b/.github/actions/test-adoc/action.yml @@ -42,7 +42,15 @@ runs: exit ${result} elif [[ ${output} ]]; then while IFS= read -r line; do - echo "::error::${line}" + if [[ "$line" == *"ERROR"* ]]; then + severity=error + elif [[ "$line" == *"WARNING"* ]]; then + severity=warning + else + severity=notice + fi + + echo "::${severity}::${line}" done <<< "${output}" exit 1 fi