File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 175175# Allow git commit messages to override bump value
176176# Check for #major or #minor in commit message and increment the relevant version number
177177
178- merge_commit=$( git log --merges -n 1)
179-
178+ echo " ----------------------------------------------"
179+ echo " ---------- version-bump-action ---------------"
180+ echo " ----------------------------------------------"
180181echo " commits_for_bump:"
181182echo " $commits_for_bump "
182183echo " "
183184echo " ----------------------------------------------"
184- echo " "
185- echo " merge_commit:"
186- echo " $merge_commit "
187185
188- if grep -qE ' feat' <<< $( echo $merge_commit ); then
186+ if grep -qE ' feat' <<< $( echo $commits_for_bump ); then
189187 echo " feature git commit detected"
190188 minor=1
191189fi
192190
193- if grep -qE ' fix|bug|patch|test' <<< $( echo $merge_commit ); then
191+ if grep -qE ' fix|bug|patch|test' <<< $( echo $commits_for_bump ); then
194192 echo " fix|bug|patch|test git commit detected"
195193 patch=1
196194fi
You can’t perform that action at this time.
0 commit comments