Skip to content

Fix workflows

Fix workflows #46

Workflow file for this run

on:
pull_request:
branches:
- main
name: Validate JSON
jobs:
validate:
name: Validate JSON Files against schemas
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download JSON Schema specification
run: |
curl "http://json-schema.org/draft-06/schema#" | sed 's/\"$schema\": \"http:\/\/json-schema.org\/draft-06\/schema#\"/\"$schema\": \"current_schema\"/' > .schema/.json_schema.json
- name: Validate JSON Schema
uses: dsanders11/json-schema-validate-action@v1.1.0
with:
files: ".schema/*.json"
schema: ".schema/.json_schema.json"
- name: Validate Category JSON
uses: dsanders11/json-schema-validate-action@v1.1.0
with:
schema: ".schema/category.json"
files: "*/config.json"
- name: Validate Manufacturer JSON
uses: dsanders11/json-schema-validate-action@v1.1.0
with:
schema: ".schema/manufacturer.json"
files: "*/*/config.json"
- name: Validate Controller JSON
uses: dsanders11/json-schema-validate-action@v1.1.0
with:
schema: ".schema/controller.json"
files: "*/*/*/config.json"