From 8ef5ccacf98432a13b980b2f007bf41e44927192 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Thu, 16 Nov 2023 18:04:17 +0100 Subject: [PATCH] fix: dump entire ci-lint reponse --- templates/validation.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/validation.yml b/templates/validation.yml index 882f066..eff3782 100644 --- a/templates/validation.yml +++ b/templates/validation.yml @@ -1,11 +1,15 @@ .lint-scripts: &lint-scripts | set -e function log_info() { - echo -e "[\e[1;94mINFO\e[0m] $*" + echo -e "[\e[1;94mINFO\e[0m] $*" + } + + function log_warn() { + echo -e "[\\e[1;93mWARN\\e[0m] $*" } function log_error() { - echo -e "[\e[1;91mERROR\e[0m] $*" >&2 + echo -e "[\e[1;91mERROR\e[0m] $*" >&2 } function install_ca_certs() { @@ -39,7 +43,7 @@ log_info " ... valid" else log_error " ... invalid" - echo "$cilint_resp" | jq -r '.errors[]' + echo "$cilint_resp" | jq rc=1 fi done -- GitLab