Skip to content

Commit

Permalink
Update validate-json-action
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos authored Dec 28, 2023
1 parent af0a764 commit 4b2e7aa
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/json_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ on:
workflow_dispatch:
push:
paths:
- 'custom_components/battery_notes/data/**'
- '.github/workflows/**'
- 'custom_components/battery_notes/data/*.json'
- '.github/workflows/json_validate.yml'
pull_request:
paths:
- 'custom_components/battery_notes/data/**'
- '.github/workflows/**'
- 'custom_components/battery_notes/data/*.json'
- '.github/workflows/json_validate.yml'

jobs:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
uses: ScratchAddons/validate-json-action@master
env:
INPUT_SCHEMA: ./schema.json
INPUT_JSONS: custom_components/battery_notes/data/library.json
schema: ./schema.json
jsons: |
custom_components/battery_notes/data/library.json
separator: '\n'

0 comments on commit 4b2e7aa

Please sign in to comment.