Skip to content

Commit

Permalink
Fix increasing maintenance version
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Jul 2, 2021
1 parent e892b8f commit 18b5221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ if [[ "$INCREASE_MAINTENANCE_VERSION" = true ]]; then
git checkout master

NEW_PROJECT_VERSION=$(echo "${PROJECT_VERSION}" | awk -F. -v OFS=. '{$NF++;print}')
sed -i "s/API_VERSION = \"$PROJECT_VERSION\"/API_VERSION = \"$NEW_PROJECT_VERSION\"/" $VERSION_FILE
sed -i "s/API_VERSION = '$PROJECT_VERSION'/API_VERSION = '$NEW_PROJECT_VERSION'/" $VERSION_FILE

git add $VERSION_FILE
git commit -m "Increase maintenance version to $NEW_PROJECT_VERSION"

git push origin master
fi
fi

0 comments on commit 18b5221

Please sign in to comment.