diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 79532b21..b672ca7c 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -82,8 +82,10 @@ jobs: with: ref: ${{github.event.pull_request.head.sha}} - name: Run helm-docs and check diff - uses: losisin/helm-docs-github-action@v1 + # TODO: Move to upstream once https://github.com/losisin/helm-docs-github-action/pull/270 is merged + uses: losisin/helm-docs-github-action@0f2a7b456e9e4393faa24d4d2e1636bdb0a5b9b9 with: - output-file: README.md - template-files: README.md.gotmpl + output-file: ./README.md + template-files: ./README.md.gotmpl + sort-values-order: file fail-on-diff: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 643e97ec..582d93ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,8 @@ repos: hooks: - id: helm-docs-built args: - - --chart-to-generate=application - - --template-files=./README.md.gotmpl + - --chart-search-root=. + - --values-file=values.yaml - --output-file=./../README.md + - --template-files=./README.md.gotmpl - --sort-values-order=file