Use v2 of publishing workflow that checks out HEAD of version branch on tag events #13677
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |