@@ -273,15 +273,15 @@ jobs:
273273 run : |
274274 # Check commit messages since last tag for version bump indicators
275275 commits_since_tag=$(git log --pretty=format:"%s" ${latest_tag}..HEAD 2>/dev/null || git log --pretty=format:"%s")
276-
276+
277277 # Look for conventional commit patterns
278- if echo "$commits_since_tag" | grep -qE "^(feat|feature)(\(.+\))?: "; then
278+ if echo "$commits_since_tag" | grep -iqE "^(feat|feature)(\(.+\))?: "; then
279279 echo "Found feature commits - minor version bump needed"
280280 echo "bump=minor" >> $GITHUB_OUTPUT
281- elif echo "$commits_since_tag" | grep -qE "^fix(\(.+\))?: "; then
281+ elif echo "$commits_since_tag" | grep -iqE "^fix(\(.+\))?: "; then
282282 echo "Found fix commits - patch version bump needed"
283283 echo "bump=patch" >> $GITHUB_OUTPUT
284- elif echo "$commits_since_tag" | grep -qE "BREAKING CHANGE:|^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?!: "; then
284+ elif echo "$commits_since_tag" | grep -iqE "BREAKING CHANGE:|^(feat|fix|docs|style|refactor|perf|test|chore)(\(.+\))?!: "; then
285285 echo "Found breaking changes - major version bump needed"
286286 echo "bump=major" >> $GITHUB_OUTPUT
287287 else
@@ -296,10 +296,10 @@ jobs:
296296 current_version="${{ steps.latest_tag.outputs.latest_tag }}"
297297 # Remove 'v' prefix
298298 version=${current_version#v}
299-
299+
300300 # Parse semantic version
301301 IFS='.' read -r major minor patch <<< "$version"
302-
302+
303303 # Calculate next version based on bump type
304304 if [[ "${{ steps.version_check.outputs.bump }}" == "major" ]]; then
305305 major=$((major + 1))
@@ -311,7 +311,7 @@ jobs:
311311 elif [[ "${{ steps.version_check.outputs.bump }}" == "patch" ]]; then
312312 patch=$((patch + 1))
313313 fi
314-
314+
315315 next_version="v${major}.${minor}.${patch}"
316316 echo "next_version=$next_version" >> $GITHUB_OUTPUT
317317 echo "Next version: $next_version"
@@ -323,7 +323,7 @@ jobs:
323323 # Generate release notes from commits
324324 echo "## What's Changed" > release_notes.md
325325 echo "" >> release_notes.md
326-
326+
327327 # Group commits by type
328328 git log --pretty=format:"%s|%h" ${{ steps.latest_tag.outputs.latest_tag }}..HEAD | while IFS='|' read -r msg hash; do
329329 if [[ $msg =~ ^feat(\(.+\))?: ]]; then
@@ -346,7 +346,7 @@ jobs:
346346 echo "- $msg ($hash)" >> release_notes.md.other
347347 fi
348348 done
349-
349+
350350 # Combine sections
351351 for type in feat fix docs test refactor other; do
352352 if [ -f release_notes.md.$type ]; then
@@ -355,7 +355,7 @@ jobs:
355355 rm release_notes.md.$type
356356 fi
357357 done
358-
358+
359359 echo "" >> release_notes.md
360360 echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ steps.latest_tag.outputs.latest_tag }}...${{ steps.next_version.outputs.next_version }}" >> release_notes.md
361361
0 commit comments