Skip to content

Commit f14d473

Browse files
mitchnielsenclaude
andauthored
Fix helm-docs step failing when there are no changes (#24)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5ada2da commit f14d473

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

action.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ runs:
6969
if: inputs.run-helm-docs == 'true' && env.CHANGES == 'true'
7070
run: |
7171
helm-docs --template-files=README.md.gotmpl
72-
git commit -am "helm-docs"
73-
git push
72+
if [[ $(git diff --name-only | wc -l) -gt 0 ]]; then
73+
git commit -am "helm-docs"
74+
git push
75+
fi
7476
shell: bash
7577

7678
- name: Create PR

0 commit comments

Comments
 (0)