add nextcloud_aio_plex to backup volumes #3474
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Json Validator | |
on: | |
pull_request: | |
paths: | |
- '**.json' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.json' | |
jobs: | |
json-validator: | |
name: Json Validator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Validate Json | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-pip -y --no-install-recommends | |
sudo pip3 install json-spec | |
json validate --schema-file=php/containers-schema.json --document-file=php/containers.json | |
JSON_FILES="$(find ./community-containers -name '*.json')" | |
mapfile -t JSON_FILES <<< "$JSON_FILES" | |
for file in "${JSON_FILES[@]}"; do | |
json validate --schema-file=php/containers-schema.json --document-file="$file" | tee -a ./json-validator.log | |
done | |
if grep "Exception: document does not validate with schema." ./json-validator.log; then | |
exit 1 | |
fi |