From 49f631d6c5b7ef20cfa751b4899122abfdb9f21a Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 13 May 2025 13:18:23 +1200 Subject: [PATCH] [schema] Deploy schema after release workflow finished (#8767) --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 359a9bcc53..88704953ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -231,3 +231,25 @@ jobs: content: description } }) + + deploy-esphome-schema: + if: github.repository == 'esphome/esphome' && needs.init.outputs.branch_build == 'false' + runs-on: ubuntu-latest + needs: + - init + - deploy-manifest + steps: + - name: Trigger Workflow + uses: actions/github-script@v7.0.1 + with: + github-token: ${{ secrets.DEPLOY_ESPHOME_SCHEMA_REPO_TOKEN }} + script: | + github.rest.actions.createWorkflowDispatch({ + owner: "esphome", + repo: "esphome-schema", + workflow_id: "generate-schemas.yml", + ref: "main", + inputs: { + version: "${{ needs.init.outputs.tag }}", + } + })