d8fb1e8e4e
* harden action permissions * Update .github/workflows/ephemeral-instances-pr-comment.yml Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com> * update documentation-ci --------- Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
37 lines
951 B
YAML
37 lines
951 B
YAML
name: Deploy pr preview
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- closed
|
|
paths:
|
|
- "docs/sources/**"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
deploy-pr-preview:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
if: "!github.event.pull_request.head.repo.fork"
|
|
uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main # zizmor: ignore[unpinned-uses]
|
|
with:
|
|
branch: ${{ github.head_ref }}
|
|
event_number: ${{ github.event.number }}
|
|
repo: grafana
|
|
sha: ${{ github.event.pull_request.head.sha }}
|
|
sources: |
|
|
[
|
|
{
|
|
"index_file": "content/docs/grafana/_index.md",
|
|
"relative_prefix": "/docs/grafana/latest/",
|
|
"repo": "grafana",
|
|
"source_directory": "docs/sources",
|
|
"website_directory": "content/docs/grafana/latest"
|
|
}
|
|
]
|
|
title: ${{ github.event.pull_request.title }}
|