renovate/test/json-schema.sh
2019-03-23 08:14:00 +01:00

14 lines
353 B
Bash
Executable file

#!/bin/bash
yarn create-json-schema
CHANGED=$(git status --porcelain | grep renovate-schema.json | wc -l)
if [ "$CHANGED" -eq 0 ]; then
echo "PASS: renovate-schema.json is up to date"
exit 0
else
git diff renovate-schema.json
echo "ERROR: renovate-schema.json needs updating. Run 'yarn create-json-schema' and commit."
exit -1
fi