generated from Templates/Dotnet_Library
fix: more release script fixes,ref: NOISSUE
This commit is contained in:
parent
8b62259785
commit
6a0addf7a3
@ -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
|
||||||
|
@ -1 +1 @@
|
|||||||
0.2.1
|
0.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user