Skip to content

Commit

Permalink
Push explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 10, 2025
1 parent 68cb6f9 commit a6e7eff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dev/release/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ version=$1

cd "${SOURCE_TOP_DIR}"

git_origin_url="$(git remote get-url origin)"
case "${git_origin_url}" in
*apache/arrow-java*)
echo "You must use your fork: ${git_origin_url}"
exit 1
;;
*)
: # OK
;;
esac

git switch -c "bump-version-${version}" main
mvn versions:set "-DnewVersion=${version}" -DprocessAllModules -DgenerateBackupPoms=false
case "${version}" in
Expand All @@ -48,4 +59,5 @@ mvn versions:set-scm-tag "-DnewTag=${tag}" -DgenerateBackupPoms=false -pl :arrow
git add "pom.xml"
git add "**/pom.xml"
git commit -m "MINOR: Bump version to ${version}"
git push origin
gh pr create --fill --repo apache/arrow-java

0 comments on commit a6e7eff

Please sign in to comment.