From 12d4cd5e9068920b11ff5708a414648482a272c2 Mon Sep 17 00:00:00 2001 From: Marek Skrobacki Date: Thu, 5 Dec 2024 10:08:00 +0000 Subject: [PATCH] helm: show diff on lint failure --- .github/workflows/helm-charts-lint.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/helm-charts-lint.yaml b/.github/workflows/helm-charts-lint.yaml index eb9d075df..1397447f9 100644 --- a/.github/workflows/helm-charts-lint.yaml +++ b/.github/workflows/helm-charts-lint.yaml @@ -21,8 +21,13 @@ jobs: uses: gabe565/setup-helm-docs-action@v1.0.4 - name: Generate documentation uses: losisin/helm-docs-github-action@v1.2.7 + id: generate with: chart-search-root: "helm-charts/" # ensures that no value changes are committed without updating the # documentation. fail-on-diff: true + - name: Show diff + if: ${{ failure() && steps.generate.conclusion == 'failure' }} + run: + git diff