From af4e7e8f46ea6f18ef079a521e0998d33325ec5d Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Wed, 6 Mar 2024 15:11:46 -0800 Subject: [PATCH] chore: update json format check --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e05049..1a0a432 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,10 @@ jobs: - name: Validate JSON Formatting run: | ./scripts/ci/format-json.sh - git diff-index --quiet HEAD -- + if ! git diff-index --quiet HEAD; then + echo "Run ./scripts/ci/format-json.sh to reformat the JSON data" + exit 1 + fi - name: Validate JSON schemas run: | ./scripts/ci/check-json-schemas.sh