Skip to content

Commit

Permalink
Update and rename doc-preview.yml to docs-preview.yml (#3601) (#3785)
Browse files Browse the repository at this point in the history
(cherry picked from commit f3daba8)

# Conflicts:
#	.github/workflows/doc-preview.yml

Co-authored-by: Brandon Morelli <[email protected]>
  • Loading branch information
mergify[bot] and bmorelli25 authored Apr 15, 2024
1 parent 99e67f8 commit 2c34d91
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 2c34d91

Please sign in to comment.