You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Add docs-preview comment in the given repository.'
3
+
inputs:
4
+
repo:
5
+
description: 'the name of the repository'
6
+
required: true
7
+
pr:
8
+
description: 'the pull-request'
9
+
required: true
10
+
github-token:
11
+
description: 'The GitHub access token.'
12
+
required: true
13
+
preview-path:
14
+
description: 'Path to append to base doc url in preview link'
15
+
required: false
16
+
default: ''
17
+
runs:
18
+
using: "composite"
19
+
steps:
20
+
- uses: actions/github-script@v7
21
+
env:
22
+
REPO: ${{ inputs.repo }}
23
+
PR: ${{ inputs.pr }}
24
+
PREVIEW_PATH: ${{ inputs.preview-path }}
25
+
with:
26
+
github-token: ${{ inputs.github-token }}
27
+
script: |
28
+
const { REPO, PR, PREVIEW_PATH } = process.env
29
+
30
+
const comment = `A documentation preview will be available soon.
31
+
Help us out by validating the Buildkite preview and reporting issues [here](https://github.com/elastic/docs/issues/new?labels=buildkite-migration,bug).
32
+
33
+
- 📚 HTML diff: [Buildkite](https://${REPO}_bk_${PR}.docs-preview.app.elstc.co/diff) - [Jenkins](https://${REPO}_${PR}.docs-preview.app.elstc.co/diff)
0 commit comments