STAGING TEST PR: ENH: Add '--release' flag to 'update-schema' #1270
Workflow file for this run
This file contains 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: 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: Debug GitHub Context | |
run: | | |
echo "Full ref: ${{ github.ref }}" | |
echo "Base ref: ${{ github.event.pull_request.base.ref }}" | |
echo "Head ref: ${{ github.event.pull_request.head.ref }}" | |
- name: Set SCHEMA_RELEASE for staging | |
if: ${{ github.event.pull_request.base.ref == '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/ |