-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (37 loc) · 1.18 KB
/
docs-update.yaml
File metadata and controls
40 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: Trigger Docs Update
on:
push:
branches: [main]
paths:
- "docs/**"
- ".hooks/generate_docs.py"
- ".github/workflows/docs-update.yaml"
workflow_dispatch:
jobs:
notify-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
id: app-token
with:
app-id: ${{ vars.UPDATE_DOCS_APP_ID }}
private-key: ${{ secrets.UPDATE_DOCS_PRIVATE_KEY }}
owner: "${{ github.repository_owner }}"
repositories: |
docs
- name: Trigger docs repository workflow
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ steps.app-token.outputs.token }}
repository: dreadnode/docs
event-type: docs-update
client-payload: |
{
"repository": "${{ github.repository }}",
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}",
"source_dir": "docs",
"target_dir": "open-source/rigging",
"nav_target": "Open Source/Rigging"
}