Skip to content

Update lycheeverse/lychee-action action to v2.0.1 #8382

Update lycheeverse/lychee-action action to v2.0.1

Update lycheeverse/lychee-action action to v2.0.1 #8382

Workflow file for this run

name: "jsonlint"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
jsonlint:
runs-on: ubuntu-latest
steps:
- name: Build demjson
shell: bash
run: |
pip install setuptools==57.5.0
pip install git+https://github.com/EIGHTFINITE/demjson.git@master
- uses: actions/checkout@v4.2.1
with:
path: DownloadItYourself
- name: jsonlint
shell: bash
run: |
# Forbid all
if [[ $(find . -type f -path ./.git -prune -o -name '*.json' -exec jsonlint -s --forbid any-type-at-start,bom,duplicate-keys,non-portable,non-bmp,zero-byte -e utf8 -- '{}' ';' | grep -v -e ': ok' -e ': has errors' | tee /dev/stderr | head -c1 | wc -c) -ne 0 ]]
then exit 1
fi