Skip to content

Commit a6e7eff

Browse files
committed
Push explicitly
1 parent 68cb6f9 commit a6e7eff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/release/bump_version.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ version=$1
3333

3434
cd "${SOURCE_TOP_DIR}"
3535

36+
git_origin_url="$(git remote get-url origin)"
37+
case "${git_origin_url}" in
38+
*apache/arrow-java*)
39+
echo "You must use your fork: ${git_origin_url}"
40+
exit 1
41+
;;
42+
*)
43+
: # OK
44+
;;
45+
esac
46+
3647
git switch -c "bump-version-${version}" main
3748
mvn versions:set "-DnewVersion=${version}" -DprocessAllModules -DgenerateBackupPoms=false
3849
case "${version}" in
@@ -48,4 +59,5 @@ mvn versions:set-scm-tag "-DnewTag=${tag}" -DgenerateBackupPoms=false -pl :arrow
4859
git add "pom.xml"
4960
git add "**/pom.xml"
5061
git commit -m "MINOR: Bump version to ${version}"
62+
git push origin
5163
gh pr create --fill --repo apache/arrow-java

0 commit comments

Comments
 (0)