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