Skip to content

add badge

add badge #734

name: JSON schema Generation Check
on:
push:
jobs:
json-schema-generation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install Python dependencies
run: pip install -r cli/requirements.txt
- name: Run generation script
run: bash schemas/generate-datamodels.sh
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: |
**/*.py
- name: List all changed files tracked and untracked files
run: |
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
if [ -n "${{ steps.verify-changed-files.outputs.changed_files }}" ]; then
echo "❌ Definitions have changed. Please regenerate the models and push again."
exit 1
else
echo "✅ No changes to definitions. Looks good!"
fi