Skip to content

Commit

Permalink
Add workflow to sync docs-content
Browse files Browse the repository at this point in the history
  • Loading branch information
vandreleal committed Dec 10, 2024
1 parent 7cef784 commit 6b800ff
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sync-docs-content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sync docs-content

on:
push:
branches:
- main
paths:
- 'openapi/**'
workflow_dispatch:

jobs:
sync-docs-content:
runs-on: ubuntu-latest

steps:
- name: Sync
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.repos.createDispatchEvent({
owner: 'GetStream',
repo: 'docs-content',
event_type: 'update-openapi',
client_payload: {
event_type: 'update-openapi',
message: 'Sync triggered'
}
});

0 comments on commit 6b800ff

Please sign in to comment.