Skip to content

Commit

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

Co-authored-by: Brandon Morelli <[email protected]>
  • Loading branch information
mergify[bot] and bmorelli25 authored Apr 15, 2024
1 parent 43ad681 commit a296e8d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/doc-preview.yml

This file was deleted.

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 a296e8d

Please sign in to comment.