generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 126
63 lines (59 loc) · 2.11 KB
/
update-draft-docs.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Update Draft docs
on:
push:
branches: [ main ]
jobs:
update-docs:
runs-on: ubuntu-22.04
steps:
- name: Update modules docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/docs/actions/workflows/39152549/dispatches'
method: 'POST'
customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OPS_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"version": "main",
"repository": "${{github.repository}}",
"section": "modules",
"docs_directory": "docs/proto/*",
"draft": "true"
}
}
- name: Update commands docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/docs/actions/workflows/39152549/dispatches'
method: 'POST'
customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OPS_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"version": "main",
"repository": "${{github.repository}}",
"section": "commands",
"docs_directory": "docs/command/*",
"draft": "true"
}
}
- name: Update predicates docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/docs/actions/workflows/39152549/dispatches'
method: 'POST'
customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OPS_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"version": "main",
"repository": "${{github.repository}}",
"section": "predicates",
"docs_directory": "docs/predicate/*",
"draft": "true"
}
}