Skip to content

Commit

Permalink
[chore] Update the json_validate.yml for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chicrock committed Sep 12, 2024
1 parent cbec731 commit 0f0f967
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/json_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ on:

push:
branches:
- master
- main

pull_request_target:
types:
- opened
- edited
branches:
- main
paths:
- '**.json'

jobs:
validate-config:
Expand All @@ -16,13 +25,13 @@ jobs:
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Install jsonlint
run: npm install -g @prantlf/jsonlint

- name: Lint JSON files
run: |
jsonlint -q ./**/*.json
jsonlint ./ -q

0 comments on commit 0f0f967

Please sign in to comment.