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 faf506c commit ca756df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ jobs:
patch=$(echo "$last_tag" | cut -d. -f3)
has_feat=false
has_breaking_change=false
git log --pretty=format:"%s" ${{ steps.previous_tag.outputs.previous_tag }}..${{ steps.version.outputs.new_version }} | \
while read line; do
while IFS= read -r line; do
case "$line" in
*'feat:'*)
echo "has_feat=true because of [$line]"
Expand All @@ -101,7 +100,7 @@ jobs:
echo "not feat not breaking change, commit -> [$line]"
;;
esac
done
done < <(git log --pretty=format:"%s" "$commit_range")
if [ "$has_breaking_change" = true ]; then
major=$((major + 1))
minor=0
Expand All @@ -116,6 +115,7 @@ jobs:
echo "NEW VERSION SHOULD BE => $new_version"
echo "::set-output name=new_version::$new_version"


- name: Create new tag
id: new_tag
Expand Down

0 comments on commit ca756df

Please sign in to comment.