
Currently pre-commit-hook is failing due to yaml validations using unversioned python and using non-existent json validations. Change-Id: I67dc11efe667e2cc67ea1a731edc5c4a03ebd1e7 Closes-Bug: #1778146
9 lines
204 B
Bash
Executable File
9 lines
204 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Move to top level directory
|
|
REAL_PATH=$(realpath $0)
|
|
cd "$(dirname "$REAL_PATH")/.."
|
|
|
|
find . -name '*.yaml' -o -name '*.yml' -print0 |
|
|
xargs -0 python3 tools/validate-yaml.py || exit 1
|