Skip to content

ENH: Add release logic to 'update-schema' #1258

ENH: Add release logic to 'update-schema'

ENH: Add release logic to 'update-schema' #1258

name: Schema up to date
on:
pull_request:
branches: [main, staging]
schedule:
- cron: "0 0 * * *"
jobs:
check_schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install pip -U
pip install -e .
- name: Set SCHEMA_RELEASE if on staging
if: startsWith(github.ref, "refs/heads/staging")

Check failure on line 26 in .github/workflows/schemas-up-to-date.yml

View workflow run for this annotation

GitHub Actions / Schema up to date

Invalid workflow file

The workflow is not valid. .github/workflows/schemas-up-to-date.yml (Line: 26, Col: 13): Unexpected symbol: '"refs/heads/staging"'. Located at position 24 within expression: startsWith(github.ref, "refs/heads/staging")
run: echo "SCHEMA_RELEASE=1" >> $GITHUB_ENV
- name: Check schema
run: |
./tools/update-schema --diff
- name: Ensure schema validates with AJV
run: |
npm install ajv ajv-formats
./tools/schema-validate-ajv.mjs ./schemas/