Skip to content

Update CI config

Update CI config #2

Workflow file for this run

name: Publish API specs to docs
on:
push:
paths:
- 'openapi/video-openapi.json'
- 'openapi/video-openapi-clientside.json'
- '.github/workflows/update-docs.yml'
branches:
- automatic-docs-update
jobs:
push_to_docs:
name: Push to docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4
with:
repository: GetStream/docs-content
path: docs-content
token: ${{ secrets.STREAM_CI_TOKEN }}
ref: automatic-api-spec-update
- name: push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GH Action CI Stream"
cd docs-content
cp ../openapi/video-openapi-clientside.json shared/assets/video-client-openapi.json
cp ../openapi/video-openapi.json shared/assets/video-openapi.json
git commit -m "Update video openapi Spec"