Skip to content

Commit

Permalink
feat: add ci & cd integration
Browse files Browse the repository at this point in the history
  • Loading branch information
brunograna committed Feb 19, 2024
1 parent fa6f651 commit 8e15df9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,21 @@ jobs:
subject=$(echo "$line" | cut -d' ' -f2-) # Extract the commit subject
case "$subject" in
*'feat:'*)
echo "has_feat to true because of [$subject]"
has_feat=true
;;
*'fix:'*)
echo "patch incremented because of [$subject]"
patch=$((patch + 1))
;;
*'BREAKING CHANGE:'*)
echo "has_breaking_change to true because of [$subject]"
has_breaking_change=true
;;
*)
echo "no pattern matched, patch incremented because of [$subject]"
patch=$((patch + 1))
;;
esac
done < <(git log --pretty=format:"%h %s" "$commit_range")
if [ "$has_breaking_change" = true ]; then
Expand Down

0 comments on commit 8e15df9

Please sign in to comment.