Added data for "STOFTMOLN ceiling/wall lamp WW37 by IKEA of Sweden" (T2037) #939
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validate-light-model | |
on: | |
pull_request_target: | |
paths: | |
- '**/model.json' | |
- 'custom_components/powercalc/data/model_schema.json' | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
validate_model_json: | |
name: Validate model.json | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Validate model.json against schema | |
uses: bramstroker/json-schema-validator@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
json_schema: ./custom_components/powercalc/data/model_schema.json | |
json_path_pattern: .*/data/([^/]+/)?([^/]+/)?model.json$ | |
send_comment: true | |
clear_comments: true |