ci: Updated bump script

This commit is contained in:
mrhid6
2024-10-30 12:17:19 +00:00
parent 86362e2658
commit 31b8963757
3 changed files with 3 additions and 170 deletions
+3 -1
View File
@@ -55,6 +55,8 @@ if [ -f VERSION ]; then
fi
echo -e "${NOTICE_FLAG} Will set new version to be ${WHITE}$INPUT_STRING${RESET}"
echo -en $INPUT_STRING >VERSION
sed -i "s/\"VersionName\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"VersionName\": \"$INPUT_STRING\"/g" *.uplugin
sed -i "s/\"SemVersion\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"SemVersion\": \"$INPUT_STRING\"/g" *.uplugin
echo "## $INPUT_STRING ($NOW)" >tmpfile
git log --pretty=format:" - %s" "v$BASE_STRING"...HEAD >>tmpfile
echo "" >>tmpfile
@@ -64,7 +66,7 @@ if [ -f VERSION ]; then
echo -e "$ADJUSTMENTS_MSG"
read
echo -e "$PUSHING_MSG"
git add CHANGELOG.md VERSION
git add CHANGELOG.md VERSION *.uplugin
git commit -m "Bump version to ${INPUT_STRING}."
git push
git tag -a -m "Tag version ${INPUT_STRING}." "v$INPUT_STRING"