Skip to content

Commit cd181e1

Browse files
committed
Trigger docs site rebuilds from docs changes
1 parent 4359a1e commit cd181e1

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Trigger docs site rebuild
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ["docs/**"]
7+
8+
jobs:
9+
notify-docs-site:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/create-github-app-token@v1
13+
id: app-token
14+
with:
15+
app-id: ${{ secrets.DOCS_DISPATCH_APP_ID }}
16+
private-key: ${{ secrets.DOCS_DISPATCH_APP_KEY }}
17+
owner: shakacode
18+
repositories: react-on-django.com
19+
20+
- uses: peter-evans/repository-dispatch@v3
21+
with:
22+
token: ${{ steps.app-token.outputs.token }}
23+
repository: shakacode/react-on-django.com
24+
event-type: docs-updated
25+
client-payload: >-
26+
{"repo_url":"https://github.com/shakacode/react-on-django.git","ref":"main"}

0 commit comments

Comments
 (0)