From 37e51b577d1240d37b46b8e75cc752a617d0e405 Mon Sep 17 00:00:00 2001 From: JMboya <44696487+JeffMboya@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:17:26 +0300 Subject: [PATCH] MG-147 - Helm Docs generation fails with `README.md has changed` error (#148) * Add debug logs Signed-off-by: JeffMboya * Always show the diff even if doc generation fails Signed-off-by: JeffMboya * Always show the diff even if doc generation fails Signed-off-by: JeffMboya * Always show the diff even if doc generation fails Signed-off-by: JeffMboya --------- Signed-off-by: JeffMboya --- .github/workflows/helm-docs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/helm-docs.yaml b/.github/workflows/helm-docs.yaml index a6b2c22..3ed9618 100644 --- a/.github/workflows/helm-docs.yaml +++ b/.github/workflows/helm-docs.yaml @@ -20,6 +20,7 @@ jobs: fetch-depth: 0 - name: Generate Helm Docs + id: helm-docs uses: losisin/helm-docs-github-action@v1.3.1 with: chart-search-root: "charts/magistrala" @@ -28,3 +29,7 @@ jobs: template-files: "README.md.gotmpl" git-push: false fail-on-diff: true + + - name: Show README diff + if: failure() && steps.helm-docs.outcome == 'failure' + run: git diff charts/magistrala/README.md || echo "No git diff available."