-
Notifications
You must be signed in to change notification settings - Fork 333
32 lines (28 loc) · 867 Bytes
/
doc-preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
name: test-docs-preview
on:
workflow_dispatch:
pull_request_target:
types: [opened]
permissions:
pull-requests: write
jobs:
doc-preview-pr:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- uses: elastic/docs/.github/actions/docs-preview@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.event.repository.name }}
pr: ${{ github.event.pull_request.number }}
doc-preview-manual:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: elastic/docs/.github/actions/docs-preview@action-update
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.event.repository.name }}
preview-path: 'guide/en/observability/master/index.html'
pr: 2865