Skip to content

Commit

Permalink
ci(docs): notify publish draft docs on docs repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jan 11, 2023
1 parent 9040df8 commit cd77416
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-draft-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: notify-release

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.OKP4_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.OKP4_TOKEN }}"}'
data: |-
{
"ref": "main",
"inputs": {
"version": "main",
"repository": "${{github.repository}}",
"section": "commands",
"docs_directory": "docs/command/*",
"draft": true
}
}

0 comments on commit cd77416

Please sign in to comment.