Skip to content

Commit

Permalink
Merge pull request #255 from okp4/docs/publish-draft
Browse files Browse the repository at this point in the history
📖 Publish draft docs
  • Loading branch information
bdeneux committed Jan 13, 2023
2 parents 6e2781c + cd77416 commit 0aa502d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/notify-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Update modules docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/docs/actions/workflows/update-versioned-docs/dispatches'
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: |-
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Update commands docs repository
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.github.com/repos/okp4/docs/actions/workflows/update-versioned-docs/dispatches'
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: |-
Expand Down
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 0aa502d

Please sign in to comment.