Skip to content

Commit c91b8fe

Browse files
authored
Add GH action for posting docs preview (#2389)
1 parent 23fb15d commit c91b8fe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docs-preview.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: docs-preview
3+
4+
on:
5+
pull_request_target:
6+
types: [opened]
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
doc-preview-pr:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: elastic/docs/.github/actions/docs-preview@master
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
repo: ${{ github.event.repository.name }}
19+
preview-path: 'guide/en/elasticsearch/client/python-api/index.html'
20+
pr: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)