Skip to content

Add Headless Prometheus Exporter and author Jae (#138) #327

Add Headless Prometheus Exporter and author Jae (#138)

Add Headless Prometheus Exporter and author Jae (#138) #327

name: Validate Mod Info Schema
on:
pull_request:
paths:
- 'manifest/**/info.json'
push:
paths:
- 'manifest/**/info.json'
branches:
- main
jobs:
validate-mod-info-json:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- run: pip install -r requirements.txt
- name: Get all changed mod info files
id: changed-mod-files
uses: tj-actions/changed-files@v45
with:
files: |
manifest/**/info.json
- name: Validate new files against schema
run: |
for file in ${{ steps.changed-mod-files.outputs.all_changed_files }}; do
echo "Validating: $file"
check-jsonschema --schemafile 'schemas/mod-schema.json' "$file"
done