Skip to content

Commit

Permalink
feat(ci): add update draft doc trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jan 13, 2023
1 parent e611394 commit 8ee54dd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-draft-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: update-draft-docs

on:
push:
branches: [ main ]

jobs:
update-docs:
runs-on: ubuntu-22.04
steps:
- name: Update draft 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": "contracts",
"docs_directory": "docs/*"
"draft": "true"
}
}

0 comments on commit 8ee54dd

Please sign in to comment.