Update validate.yml

This commit is contained in:
pzcn
2022-03-04 15:06:04 +08:00
parent a658507eb1
commit 73340aebf5

View File

@@ -1,14 +1,17 @@
name: Validate NotifyIconsRule Json File name: Validate NotifyIconsRule Json File
on: [pull_request] on:
push:
paths:
- '**.json'
pull_request:
jobs: jobs:
verify-json-validation: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Validate JSON - name: json-syntax-check
uses: docker://orrosenblatt/validate-json-action:latest uses: limitusus/json-syntax-check@v1
env: with:
INPUT_SCHEMA: /path/to/schema.json pattern: "\\.json$"
INPUT_JSONS: /path/to/file.json,/path/to/another/file.json