Skip to content

Schemas

Schemas #248

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Schemas
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
push:
branches:
- main
paths:
- .github/workflows/schemas.yaml
env:
UV_SYSTEM_PYTHON: "1"
permissions:
contents: read
jobs:
main:
name: Schemas
runs-on: home-ops-runner
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install kubectl
uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1
- name: Install uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
with:
enable-cache: false
- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3.14.x
- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24.x
- name: Install Python Dependencies
run: uv pip install pyyaml
- name: Run crd-extractor
run: curl -fsSL https://raw.githubusercontent.com/datreeio/CRDs-catalog/43e4407642d4c37683c88711f37caa6c9c20ca40/Utilities/crd-extractor.sh | bash
- name: Publish Schemas
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: /home/runner/.datree/crdSchemas
command: pages deploy --project-name=sbbh-schemas --branch main .