From 715db0af999eb71bdef7a43830c04e6f0bb120f6 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 16 Jul 2022 13:49:08 -0700 Subject: [PATCH] Formatting --- .ci-scripts/lint.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.ci-scripts/lint.sh b/.ci-scripts/lint.sh index 7c875b0..ba7666f 100644 --- a/.ci-scripts/lint.sh +++ b/.ci-scripts/lint.sh @@ -1,16 +1,31 @@ #!/bin/bash jq --null-input --arg yaml "$1" '.content=$yaml' \ - | curl -vvv "https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true" \ + | curl "https://git.ethitter.com/api/v4/ci/lint?include_merged_yaml=true" \ + --silent \ --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: $GITLAB_API_PAT" \ - --data @- -o result.json + --data @- \ + -o result.json +echo "" +echo "" +echo "MERGED YAML:" jq --raw-output '.merged_yaml' < result.json + +echo "" +echo "ERRORS:" jq '.errors' < result.json + +echo "" +echo "WARNINGS:" jq '.warnings' < result.json -if [[ true == $(jq '.valid' < result.json) ]]; then +echo "" +echo "IS VALID:" +jq '.valid' < result.json + +if [ "true" == "$(jq '.valid' < result.json)" ]; then exit 0 else exit 1 -- GitLab