Commit 9c9c3cc
Fix helm-docs step failing when there are no changes
The helm-docs step was failing with exit code 1 when there were no documentation changes to commit. This occurred because the shell's `set -e` flag (from the default bash configuration) causes immediate exit on any non-zero exit code, and `git commit` returns 1 when there's nothing to commit.
This fix adds a check for actual file changes before attempting to commit and push. If helm-docs doesn't generate any changes, the step now completes successfully without trying to commit.
Related: https://github.com/PrefectHQ/prefect-operator/actions/runs/18656329028/job/53186252489
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5ada2da commit 9c9c3cc
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
0 commit comments