Skip to content

Commit c38be0c

Browse files
committed
[CI][DOCS] Adds GitHub Action for docs validation comment
1 parent 3576ac7 commit c38be0c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docs-preview.yml

+20
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/ruby-api/index.html'
20+
pr: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)