fix: more release script fixes,ref: NOISSUE
All checks were successful
CI / linter (9.0.X, ubuntu-latest) (push) Successful in 3m41s
SonarQube Scan / SonarQube Trigger (push) Successful in 4m16s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Successful in 4m19s

This commit is contained in:
Simon Diesenreiter 2024-12-02 11:34:33 +01:00
parent 8b62259785
commit 6a0addf7a3
2 changed files with 3 additions and 5 deletions

View File

@ -66,17 +66,14 @@ start() {
echo $message 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 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" increment_type="major"
echo "a"
break 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 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 if [ -z "$increment_type" ] || [ "$increment_type" == "patch" ]; then
increment_type="minor" increment_type="minor"
echo "b"
fi 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 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 if [ -z "$increment_type" ]; then
increment_type="patch" increment_type="patch"
echo "c"
fi fi
fi fi
done < $TEMP_FILE_PATH/messages.txt done < $TEMP_FILE_PATH/messages.txt
@ -86,8 +83,9 @@ start() {
echo "New version: $new_version" echo "New version: $new_version"
gitchangelog | grep -v "[rR]elease:" > HISTORY.md gitchangelog | grep -v "[rR]elease:" > HISTORY.md
git add TextParser/VERSION HISTORY.md
echo $new_version > TextParser/VERSION echo $new_version > TextParser/VERSION
git add TextParser/VERSION
git add HISTORY.md
git commit -m "release: version $new_version 🚀" git commit -m "release: version $new_version 🚀"
echo "creating git tag : $new_version" echo "creating git tag : $new_version"
git tag $new_version git tag $new_version

View File

@ -1 +1 @@
0.2.1 0.2.2