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
on: [pull_request]
on:
push:
paths:
- '**.json'
pull_request:
jobs:
verify-json-validation:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: /path/to/schema.json
INPUT_JSONS: /path/to/file.json,/path/to/another/file.json
- uses: actions/checkout@v2
- name: json-syntax-check
uses: limitusus/json-syntax-check@v1
with:
pattern: "\\.json$"