Skip to content

Trigger upstream OpenAPI sync #14

Trigger upstream OpenAPI sync

Trigger upstream OpenAPI sync #14

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 }}"}'