Skip to content

ci: add PR OpenAPI/bindings check action (#127) #2

ci: add PR OpenAPI/bindings check action (#127)

ci: add PR OpenAPI/bindings check action (#127) #2

name: Trigger upstream OpenAPI sync
on:
push:
paths:
- "runner/openapi.json"
workflow_dispatch:
jobs:
trigger-upstream-openapi-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Trigger docs AI OpenAPI spec update
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DOCS_TRIGGER_PAT }}
repository: livepeer/docs
event-type: update-ai-openapi
client-payload: '{"sha": "${{ github.sha }}"}'
- name: Trigger SDK generation
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.SDKS_TRIGGER_PAT }}
repository: livepeer/livepeer-ai-sdks
event-type: update-ai-openapi
client-payload: '{"sha": "${{ github.sha }}"}'