name: docs-check on: push: tags: - v* branches: - master - release-* pull_request: branches: - master - release-* # cancel the in-progress workflow when PR is refreshed. concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true permissions: contents: read jobs: docs-check: name: docs-check runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version: "1.22" - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: 3.9 - uses: DavidAnson/markdownlint-cli2-action@eb5ca3ab411449c66620fe7f1b3c9e10547144b0 # v18.0.0 with: globs: | Documentation/**/*.md !Documentation/Helm-Charts - name: Check helm-docs run: make check.helm-docs - name: Check docs run: make check.docs - name: Install mkdocs and dependencies run: cd build/release/ && make deps.docs - name: Check documentation for CRDs run: | make generate-docs-crds DIFF_ON_DOCS=$(git diff --ignore-matching-lines='on git commit') if [ ! -z "$DIFF_ON_DOCS" ]; then echo "Please run 'make generate-docs-crds' locally, commit the updated crds docs, and push the change" fi git diff --ignore-matching-lines='on git commit' --exit-code - name: Build documentation using mkdocs run: make docs-build