We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f0ad3 commit 569cb42Copy full SHA for 569cb42
1 file changed
src/gitutils/_git-release-prod.sh
@@ -45,12 +45,16 @@ GIT_EDITOR=:
45
GBV=$(bump-changelog -b -m)
46
if [ "$?" -eq 0 ] && [ -n "$GBV" ]; then
47
zz_log s "Version & CHANGELOG updated to: {B $GBV}"
48
- git commit -am "chore(release): $GBV"
+
49
+ if ! git commit -am "chore(release): $GBV"; then
50
+ zz_log e "Cannot commit version & CHANGELOG"
51
+ exit 1
52
+ fi
53
54
if git flow $flow finish $name --push; then
55
zz_log s "Release finished: {B $GBV}"
56
rm -f .git/RELEASE
57
else
- git undo
58
zz_log e "Cannot finish release. CHANGELOG & VERSION are not updated."
59
fi
60
0 commit comments