Skip to content

Commit cc859ab

Browse files
authored
feat: automatically trigger updates to the docs document (#3906)
* feat: automatically trigger updates to the docs document * feat: automatically trigger updates to the docs document * feat: add PAT_TOKEN
1 parent 24307b9 commit cc859ab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Trigger main repo workflow
12+
env:
13+
PAT: ${{ secrets.PAT_TOKEN }}
14+
run: |
15+
curl -X POST \
16+
-H "Authorization: token $PAT" \
17+
-H "Accept: application/vnd.github.v3+json" \
18+
https://api.github.com/repos/opentiny/docs/dispatches \
19+
-d '{"event_type":"submodule-updated"}'

0 commit comments

Comments
 (0)