Skip to content

Commit

Permalink
color output
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Jan 7, 2024
1 parent b1f8796 commit 06ea15d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/job-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ jobs:
# grok if this is a JVM OOM error
jvm_error=$(cat /tmp/taskmanager.log | grep "java.lang.OutOfMemoryError")
if [[ "$jvm_error" ]]; then
echo "there seems to be a JVM OOM error task manager logs..."
RED='\033[0;31m'
GREEN='\033[0;32m'
NOCOLOR='\033[0m' # To reset the color
echo "###################################################"
echo -e "${RED}ERROR: ${NOCOLOR}${GREEN}There seems to be a JVM OOM error in the task manager logs...${NOCOLOR}"
echo "$jvm_error"
fi
Expand Down

0 comments on commit 06ea15d

Please sign in to comment.