Skip to content

Commit

Permalink
Add GH action for posting docs preview (elastic#728)
Browse files Browse the repository at this point in the history
* Add GH action for posting docs preview

* Update .github/workflows/docs-preview.yml

Co-authored-by: Nassim Kammah <[email protected]>

---------

Co-authored-by: Nassim Kammah <[email protected]>
  • Loading branch information
kilfoyle and nkammah authored Nov 30, 2023
1 parent 7f94689 commit 4b6db16
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: docs-preview

on:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
doc-preview-pr:
runs-on: ubuntu-latest
steps:
- uses: elastic/docs/.github/actions/docs-preview@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.event.repository.name }}
preview-path: 'guide/en/fleet/index.html'
pr: ${{ github.event.pull_request.number }}

0 comments on commit 4b6db16

Please sign in to comment.