From 044a61f583a50fc8ec8034f7b8304f0945dd532d Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Fri, 9 Feb 2024 11:36:30 -0800 Subject: [PATCH] Update and rename doc-preview.yml to docs-preview.yml (#3601) (cherry picked from commit f3daba864496baa30c07dbe7a4b2703d6af38d28) --- .github/workflows/docs-preview.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/docs-preview.yml diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml new file mode 100644 index 0000000000..8a197b9ad9 --- /dev/null +++ b/.github/workflows/docs-preview.yml @@ -0,0 +1,23 @@ +name: docs-preview +on: + pull_request_target: + types: [opened] + paths: + - '**.asciidoc' + - '**.jpg' + - '**.png' + - '**.gif' + +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/index.html' + pr: ${{ github.event.pull_request.number }}