[schema] Deploy schema after release workflow finished (#8767)

This commit is contained in:
Jesse Hills 2025-05-13 13:18:23 +12:00 committed by GitHub
parent a9d5eb8470
commit 49f631d6c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}",
}
})