diff --git a/.github/helm-docs.sh b/.github/helm-docs.sh deleted file mode 100755 index 36b6836..0000000 --- a/.github/helm-docs.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# Credit: https://github.com/DataDog/helm-charts/blob/main/.github/helm-docs.sh -set -euo pipefail - -HELM_DOCS_VERSION="1.10.0" -OS=$(uname) - -# install helm-docs -curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_${OS}_x86_64.tar.gz -tar -xf /tmp/helm-docs.tar.gz helm-docs - -# validate docs -./helm-docs -git diff --exit-code diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e14af8..dd32498 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,8 +54,14 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Install Helm Docs + uses: envoy/install-helm-docs@v1.0.0 + with: + version: 1.11.0 - name: Run helm-docs - run: .github/helm-docs.sh + run: | + helm-docs + git diff --exit-code kubeval-chart: runs-on: ubuntu-latest diff --git a/.helmdocsignore b/.helmdocsignore index 6ddc12d..cc86546 100644 --- a/.helmdocsignore +++ b/.helmdocsignore @@ -1,3 +1,4 @@ +# Ignore deprecated charts charts/vector-agent charts/vector-aggregator charts/vector-shared