#!/bin/bash

handle_error() {
    echo_red_bg "Error: $1"
    echo ":stop_sign: ERROR - $1" >> $GITHUB_STEP_SUMMARY
    exit 1
}

function echo_red_bg() {
  echo -e "\e[41m$1\e[0m"
}

function echo_red() {
  echo -e "\e[31m$1\e[0m"
}

function echo_green_bg() {
  echo -e "\e[42m$1\e[0m"
}

function echo_green() {
  echo -e "\e[32m$1\e[0m"
}

function echo_yellow_bg() {
  echo -e "\e[43m$1\e[0m"
}

function echo_yellow() {
  echo -e "\e[33m$1\e[0m"
}