Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add JS/TS SDK update trigger #138

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/trigger-upstream-openapi-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,40 @@ on:
workflow_dispatch:

jobs:
trigger-upstream-openapi-sync:
trigger-sdks-openapi-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Trigger docs AI OpenAPI spec update
- name: Trigger experimental SDKs update
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DOCS_TRIGGER_PAT }}
repository: livepeer/docs
token: ${{ secrets.SDKS_TRIGGER_PAT }}
repository: livepeer/livepeer-ai-sdks
event-type: update-ai-openapi
client-payload: '{"sha": "${{ github.sha }}"}'

- name: Trigger SDK generation

- name: Trigger released JS/TS SDK update
# if: startsWith(github.ref, 'refs/tags/') # Only run on release.
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.SDKS_TRIGGER_PAT }}
repository: livepeer/livepeer-ai-sdks
repository: livepeer/ai-sdk-js
event-type: update-ai-openapi
client-payload: '{"sha": "${{ github.sha }}"}'

trigger-docs-openapi-sync:
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/') # Only run on release.
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: rickstaa/docs
event-type: update-ai-openapi
client-payload: '{"sha": "${{ github.sha }}"}'