Skip to content

Commit

Permalink
Simple JSON validation
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Sep 26, 2024
1 parent dc27ab3 commit 58bcae7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/validate-json.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 58bcae7

Please sign in to comment.