From 8e15df94dad19f8bed136ac3509a614f785749fd Mon Sep 17 00:00:00 2001 From: brunograna Date: Sun, 18 Feb 2024 21:19:19 -0300 Subject: [PATCH] feat: add ci & cd integration --- .github/workflows/cd.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 163b454..637861c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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