Skip to content

check json files with jq #4

check json files with jq

check json files with jq #4

Workflow file for this run

---
name: Lint
on:
pull_request:
# paths:
# - "secjson/**/**"
jobs:
build:
name: JSON lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check JSON files
run: |
for f in $(ls secjson); do
jq type 1>/dev/null < "secjson/$f"
if [ $? -gt 0 ]; then
echo "Error in file: $f"
fi
done