Skip to content

Commit

Permalink
Always show the diff even if doc generation fails
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <[email protected]>
  • Loading branch information
JeffMboya committed Sep 13, 2024
1 parent a3f6267 commit 32b82c7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/helm-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
ref: ${{ github.ref }}
fetch-depth: 0

- name: Generate Helm Docs
id: helm-docs
Expand All @@ -31,7 +27,5 @@ jobs:
fail-on-diff: true

- name: Show README diff
if: failure() # Run only if the Helm Docs generation step fails
run: |
echo "README.md changes detected. Showing diff:"
git diff charts/magistrala/README.md || echo "No git diff available."
if: failure() && steps.helm-docs.outcome == 'failure'
run: git diff charts/magistrala/README.md || echo "No git diff available."

0 comments on commit 32b82c7

Please sign in to comment.