diff --git a/.github/workflows/validate-json.yml b/.github/workflows/validate-json.yml new file mode 100644 index 000000000..c91d13b10 --- /dev/null +++ b/.github/workflows/validate-json.yml @@ -0,0 +1,25 @@ +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: Checkout + uses: actions/checkout@v4 + with: + path: 'config' + + - name: + run: | + EMPTY=$(cat config/lib/armbian-configng/config.ng.jobs.json | jq | nl | grep '"author": ""' | awk '{print $1}' | paste -s -d, -) + echo $EMPTY >> $GITHUB_STEP_SUMMARY