diff --git a/.github/workflows/schemas.yaml b/.github/workflows/schemas.yaml index 67b231e26d296..b23fbc896a13f 100644 --- a/.github/workflows/schemas.yaml +++ b/.github/workflows/schemas.yaml @@ -6,16 +6,13 @@ on: workflow_dispatch: schedule: - cron: "0 0 * * *" # Every day at midnight - pull_request: - branches: ["main"] - paths: [".github/workflows/schemas.yaml"] push: branches: ["main"] paths: [".github/workflows/schemas.yaml"] -# env: -# HOMEBREW_NO_ANALYTICS: "1" -# UV_SYSTEM_PYTHON: "1" +env: + HOMEBREW_NO_ANALYTICS: "1" + UV_SYSTEM_PYTHON: "1" jobs: publish: @@ -37,42 +34,27 @@ jobs: with: token: "${{ steps.app-token.outputs.token }}" - # - name: Setup Homebrew - # uses: Homebrew/actions/setup-homebrew@master - # with: - # stable: true - - # - name: Setup Workflow Tools - # shell: bash - # run: brew install kubectl uv + - name: Setup Homebrew + uses: Homebrew/actions/setup-homebrew@master + with: + stable: true - # - name: Setup Python - # uses: actions/setup-python@v5 - # with: - # python-version: 3.12.x + - name: Setup Workflow Tools + shell: bash + run: brew install kubectl uv - # - name: Setup Node - # uses: actions/setup-node@v4 - # with: - # node-version: 18.x + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.12.x - - name: Setup Workflow Tools - uses: jdx/mise-action@v2 - env: - GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" + - name: Setup Node + uses: actions/setup-node@v4 with: - mise_toml: | - [tools] - python = "3.12" - node = "20" - "aqua:astral-sh/uv" = "latest" - "aqua:kubernetes/kubectl" = "latest" - "npm:wrangler" = "latest" + node-version: 18.x - name: Install Python Dependencies run: uv pip install pyyaml - env: - UV_SYSTEM_PYTHON: "1" - name: Download and run crd-extractor shell: bash