Use ns instead of core #27
This file contains hidden or 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 schema | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: pip install uv | |
| - run: npm install -g ajv-cli ajv-formats | |
| - run: ajv compile --spec draft2020 -c ajv-formats -s schemas/**/schema.json | |
| - run: uv run --no-project bin/validator.py | |
| update-latest-schema: | |
| runs-on: ubuntu-latest | |
| needs: validate | |
| if: github.event_name == 'push' | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Overwrite latest copies from v1 | |
| run: | | |
| cp schemas/v1/schema.json schemas/latest.json | |
| cp schemas/v1/context.jsonld schemas/latest_context.jsonld | |
| cp schemas/v1/ontology.ttl schemas/latest_ontology.ttl | |
| - name: Commit latest copies (if any changed) | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: "Update latest copies from schemas/v1/" | |
| file_pattern: schemas/latest.json schemas/latest_context.jsonld schemas/latest_ontology.ttl |