Skip to content

Commit 32b82c7

Browse files
committed
Always show the diff even if doc generation fails
Signed-off-by: JeffMboya <[email protected]>
1 parent a3f6267 commit 32b82c7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/helm-docs.yaml

+2-8
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
17-
with:
18-
repository: ${{ github.repository }}
19-
ref: ${{ github.ref }}
20-
fetch-depth: 0
2117

2218
- name: Generate Helm Docs
2319
id: helm-docs
@@ -31,7 +27,5 @@ jobs:
3127
fail-on-diff: true
3228

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

0 commit comments

Comments
 (0)