ci: add PR OpenAPI/bindings check action (#127) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}"}' |