diff --git a/.gitea/conventional_commits/generate-version.sh b/.gitea/conventional_commits/generate-version.sh index 011ca93..b84495a 100755 --- a/.gitea/conventional_commits/generate-version.sh +++ b/.gitea/conventional_commits/generate-version.sh @@ -66,17 +66,14 @@ start() { echo $message if echo $message | grep -Pq '(feat|style)(\([\w]+\))?!:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE)))'; then increment_type="major" - echo "a" break elif echo $message | grep -Pq '(feat|style)(\([\w]+\))?:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE)))'; then if [ -z "$increment_type" ] || [ "$increment_type" == "patch" ]; then increment_type="minor" - echo "b" fi elif echo $message | grep -Pq '(build|fix|perf|refactor|revert)(\(.+\))?:\s([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE)))'; then if [ -z "$increment_type" ]; then increment_type="patch" - echo "c" fi fi done < $TEMP_FILE_PATH/messages.txt @@ -86,8 +83,9 @@ start() { echo "New version: $new_version" gitchangelog | grep -v "[rR]elease:" > HISTORY.md - git add TextParser/VERSION HISTORY.md echo $new_version > TextParser/VERSION + git add TextParser/VERSION + git add HISTORY.md git commit -m "release: version $new_version 🚀" echo "creating git tag : $new_version" git tag $new_version diff --git a/TextParser/VERSION b/TextParser/VERSION index 0c62199..ee1372d 100644 --- a/TextParser/VERSION +++ b/TextParser/VERSION @@ -1 +1 @@ -0.2.1 +0.2.2