Skip to content

Commit 0ef85ac

Browse files
author
tilo-14
committed
Add workflow to trigger docs repo sync on push
1 parent bf2705a commit 0ef85ac

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Trigger Docs Sync
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger-sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger docs repo sync
13+
run: |
14+
curl -X POST \
15+
-H "Accept: application/vnd.github.v3+json" \
16+
-H "Authorization: token ${{ secrets.DOCS_REPO_TOKEN }}" \
17+
https://api.github.com/repos/Lightprotocol/docs/dispatches \
18+
-d '{"event_type":"sync-examples"}'

0 commit comments

Comments
 (0)