Skip to content

Add multi_switch strategy #1251

Add multi_switch strategy

Add multi_switch strategy #1251

name: validate-light-model
on:
pull_request_target:
paths:
- '**/model.json'
- 'profile_library/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@v4
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: ./profile_library/model_schema.json
json_path_pattern: .*/data/([^/]+/)?([^/]+/)?model.json$
send_comment: true
clear_comments: true