You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
name: Validate Metadata JSON
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- metadata.json
|
|
|
|
- metadata.schema.json
|
|
|
|
- .github/workflows/metadata-validation.yml
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- metadata.json
|
|
|
|
- metadata.schema.json
|
|
|
|
- .github/workflows/metadata-validation.yml
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Validate metadata.json
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.0.0
|
|
|
|
- uses: actions/setup-python@v4.0.0
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
- run: pip install jsonschema
|
|
|
|
- run: jsonschema -i metadata.json metadata.schema.json
|