diff --git a/scripts/validate-grafana-dashboards.sh b/scripts/validate-grafana-dashboards.sh index f4ab83307c7c..f53cab4e2ee1 100755 --- a/scripts/validate-grafana-dashboards.sh +++ b/scripts/validate-grafana-dashboards.sh @@ -3,6 +3,11 @@ # This script will mutate the dashboards if anything needs linting node scripts/lint-grafana-dashboards.mjs ./dashboards +if [[ $? -ne 0 ]]; then + echo 'linting dashboards failed' + exit 1 +fi + if [[ $(git diff --stat ./dashboards) != '' ]]; then git --no-pager diff echo 'dashboards need fixing'