ci: Updated bump script
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user