Skip to content

Commit ca756df

Browse files
committed
feat: add ci & cd integration
1 parent faf506c commit ca756df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
patch=$(echo "$last_tag" | cut -d. -f3)
8787
has_feat=false
8888
has_breaking_change=false
89-
git log --pretty=format:"%s" ${{ steps.previous_tag.outputs.previous_tag }}..${{ steps.version.outputs.new_version }} | \
90-
while read line; do
89+
while IFS= read -r line; do
9190
case "$line" in
9291
*'feat:'*)
9392
echo "has_feat=true because of [$line]"
@@ -101,7 +100,7 @@ jobs:
101100
echo "not feat not breaking change, commit -> [$line]"
102101
;;
103102
esac
104-
done
103+
done < <(git log --pretty=format:"%s" "$commit_range")
105104
if [ "$has_breaking_change" = true ]; then
106105
major=$((major + 1))
107106
minor=0
@@ -116,6 +115,7 @@ jobs:
116115
echo "NEW VERSION SHOULD BE => $new_version"
117116
echo "::set-output name=new_version::$new_version"
118117
118+
119119

120120
- name: Create new tag
121121
id: new_tag

0 commit comments

Comments
 (0)