Skip to content

Use v2 of publishing workflow that checks out HEAD of version branch on tag events #13677

Use v2 of publishing workflow that checks out HEAD of version branch on tag events

Use v2 of publishing workflow that checks out HEAD of version branch on tag events #13677

Workflow file for this run

name: Check docs
on: [pull_request]
permissions:
contents: read
jobs:
build-technical-documentation:
runs-on: "ubuntu-latest"
steps:
- name: "Check out code"
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
with:
persist-credentials: false
- name: "Build technical documentation"
run: >
docker run
--volume "${PWD}/docs/sources:/hugo/content/docs/agent/latest"
--env HUGO_REFLINKSERRORLEVEL=ERROR
--rm grafana/docs-base:latest
/bin/bash -c 'echo -e "---\\nredirectURL: /docs/agent/latest/\\ntype: redirect\\nversioned: true\\n---\\n" > /hugo/content/docs/agent/_index.md && make hugo'