Skip to content

Enforce max span attribute size #1530

Enforce max span attribute size

Enforce max span attribute size #1530

Workflow file for this run

name: "doc-validator"
on:
pull_request:
paths: ["docs/sources/**"]
workflow_dispatch:
jobs:
doc-validator:
runs-on: "ubuntu-latest"
container:
image: "grafana/doc-validator:v5.2.0"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Run doc-validator"
run: |
rm -rf /hugo/content/docs
mkdir -p /hugo/content/docs/tempo
mkdir -p /hugo/content/docs/helm-charts/tempo-distributed
mv "$(pwd)/docs/sources/tempo" /hugo/content/docs/tempo/latest
mv "$(pwd)/docs/sources/helm-charts/tempo-distributed" /hugo/content/docs/helm-charts/tempo-distributed/next
doc-validator \
'--skip-checks=^image' \
/hugo/content/docs \
/docs/tempo/latest \
| sed -E s,/hugo/content/docs/tempo/latest,docs/sources/tempo,g \
| sed -E s,/hugo/content/docs/helm-charts/tempo-distributed/next,/docs/sources/helm-charts/tempo-distributed,g \
| reviewdog \
-f=rdjsonl \
--fail-on-error \
--filter-mode=nofilter \
--name=doc-validator \
--reporter=github-pr-review
env:
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"