From 9d3e8d247f8da826e8cf7179567c0452d2e379ff Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 26 Sep 2024 21:49:02 +0200 Subject: [PATCH] Simple JSON validation --- .github/workflows/validate-json.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/validate-json.yml diff --git a/.github/workflows/validate-json.yml b/.github/workflows/validate-json.yml new file mode 100644 index 000000000..8336dca8f --- /dev/null +++ b/.github/workflows/validate-json.yml @@ -0,0 +1,20 @@ +name: Validate JSON + +on: + pull_request: + types: [opened, reopened, edited, synchronize, review_requested] + +concurrency: + group: validate-json-${{github.event.pull_request.number}} + cancel-in-progress: true + +jobs: + editorconfig: + name: "Validate JSON" + runs-on: ubuntu-latest + steps: + - name: + run: | + EMPTY=$(cat config.ng.jobs.json | jq | nl | grep '"author": ""') + echo $EMPTY >> $GITHUB_STEP_SUMMARY + if [[ -n "${EMPTY}" ]]; then false; fi