Skip to content

Merge pull request #5 from opendatahub-io/add-ci-and-scripts #6

Merge pull request #5 from opendatahub-io/add-ci-and-scripts

Merge pull request #5 from opendatahub-io/add-ci-and-scripts #6

Workflow file for this run

name: Validate Registry
on:
pull_request:
paths:
- 'registry.yaml'
- '.claude-plugin/**'
- 'schema/**'
- 'scripts/**'
push:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install pyyaml==6.0.3 jsonschema==4.26.0
- name: Validate registry schema
run: python3 scripts/validate_registry.py
- name: Sync marketplace.json
run: python3 scripts/sync_marketplace.py
- name: Check marketplace.json is in sync
run: |
git diff --exit-code .claude-plugin/marketplace.json || \
(echo "ERROR: marketplace.json is out of sync with registry.yaml." && \
echo "Run: python3 scripts/sync_marketplace.py" && exit 1)
- name: Generate catalog
run: python3 scripts/generate_catalog.py
- name: Check catalog.md is in sync
run: |
git diff --exit-code catalog.md || \
(echo "ERROR: catalog.md is out of sync with registry.yaml." && \
echo "Run: python3 scripts/generate_catalog.py" && exit 1)