Skip to content

Commit 4b6db16

Browse files
kilfoylenkammah
andauthored
Add GH action for posting docs preview (#728)
* Add GH action for posting docs preview * Update .github/workflows/docs-preview.yml Co-authored-by: Nassim Kammah <nkammah@gmail.com> --------- Co-authored-by: Nassim Kammah <nkammah@gmail.com>
1 parent 7f94689 commit 4b6db16

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

0 commit comments

Comments
 (0)