97d10b5095
* remove unused worklow; use GITHUB_TOKEN where possible * pin usages of checkout and setup-go * Fix zizmor errors * add zizmor.yml * fix `changelog.yml` * fix `core-plugins-build-and-release.yml` * fix `release-comms.yml` * update release-pr.yml and run-e2e-suite.yml * Fix errors in files outside of .github/workflows * Remove path filter on zizmor.yml --------- Co-authored-by: Sven Grossmann <svennergr@gmail.com> Co-authored-by: joshhunt <josh.hunt@grafana.com>
32 lines
869 B
YAML
32 lines
869 B
YAML
name: Deploy pr preview
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- closed
|
|
paths:
|
|
- "docs/sources/**"
|
|
|
|
jobs:
|
|
deploy-pr-preview:
|
|
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 }}
|