fix: Workaround helm-docs v1.10.0 breaking change (#1285)

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
main
Marco Kilchhofer 2022-05-19 12:26:37 +02:00 committed by GitHub
parent 57e1cd6960
commit 20924aced3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -37,10 +37,16 @@ jobs:
run: ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
- name: Run docs-testing (helm-docs)
uses: buttahtoast/helm-release-action@v2.0.1
with:
charts: "${{ steps.list-changed.outputs.changed_charts }}"
if: steps.list-changed.outputs.changed == 'true'
id: helm-docs
run: |
./scripts/helm-docs.sh
if [[ $(git diff --stat) != '' ]]; then
echo -e '\033[0;31mDocumentation outdated!\033[0m ❌'
git diff --color
exit 1
else
echo -e '\033[0;32mDocumentation up to date\033[0m ✔'
fi
- name: Create kind cluster
uses: helm/kind-action@v1.2.0

2
scripts/helm-docs.sh Normal file → Executable file
View File

@ -8,4 +8,4 @@ echo "Running Helm-Docs"
docker run \
-v "$CHART_DIR:/helm-docs" \
-u $(id -u) \
jnorwood/helm-docs:latest
jnorwood/helm-docs:v1.9.1