mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
30 lines
961 B
YAML
30 lines
961 B
YAML
name: "doc-validator"
|
|
on:
|
|
pull_request:
|
|
paths: ["docs/sources/**"]
|
|
workflow_dispatch:
|
|
jobs:
|
|
doc-validator:
|
|
runs-on: "ubuntu-latest"
|
|
container:
|
|
image: "grafana/doc-validator:v3.2.1"
|
|
steps:
|
|
- name: "Checkout code"
|
|
uses: "actions/checkout@v4"
|
|
- name: "Run doc-validator tool"
|
|
# Only run doc-validator on specific directories.
|
|
run: >
|
|
doc-validator
|
|
'--include=^docs/sources/(?:alerting|fundamentals|getting-started|introduction|setup-grafana|upgrade-guide|whatsnew/whats-new-in-v(?:9|10))/.+\.md$'
|
|
'--skip-checks=^(?:image.+|canonical-does-not-match-pretty-URL)$'
|
|
./docs/sources
|
|
/docs/grafana/latest
|
|
| reviewdog
|
|
-f=rdjsonl
|
|
--fail-on-error
|
|
--filter-mode=nofilter
|
|
--name=doc-validator
|
|
--reporter=github-pr-review
|
|
env:
|
|
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|