Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen committed Nov 23, 2024
1 parent c91e523 commit df95792
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/test-adoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit df95792

Please sign in to comment.