Commit 7d38812
authored
fix: correct version bump detection logic in GitHub Actions workflow (#22)
- Fix conditional logic that incorrectly detected version bump requirements
- Change from exit code checking to output pattern matching for cz bump --dry-run
- Improve error handling with proper stderr capture (2>&1)
- Add clearer logging messages for version bump decisions
- Handle changelog generation failures gracefully
The previous logic failed because cz bump --dry-run returns non-zero exit code
even when version bump is needed, due to changelog generation errors.
Now we check for 'bump: version' pattern in output instead of exit code.
Fixes the issue where workflow showed 'No version bump needed' while actually
detecting version changes (e.g., 0.2.0 → 0.2.1 PATCH increment).1 parent 4bde247 commit 7d38812
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
| 78 | + | |
75 | 79 | | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | | - | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
0 commit comments