This is an automated email from the ASF dual-hosted git repository.
francischuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git
The following commit(s) were added to refs/heads/main by this push:
new aad227f38 Checkout release svn repository when promoting a release
using the docker script
aad227f38 is described below
commit aad227f38ae6604f811d6aa84fb50a2f26650f68
Author: Francis Chuang <[email protected]>
AuthorDate: Sun May 8 14:48:47 2022 +1000
Checkout release svn repository when promoting a release using the docker
script
---
docker.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docker.sh b/docker.sh
index e09f79d7a..b03ebfa5a 100755
--- a/docker.sh
+++ b/docker.sh
@@ -258,6 +258,9 @@ promote_release(){
# 4. Exclude the release we're trying to promote, in case it was from a
failed promotion.
# 5. Trim all whitespace down to 1 empty space.
# 6. Select field 7, which is each release's folder
+ svn checkout $RELEASE_REPO /tmp/release
+ cd /tmp/release
+
CURRENT_RELEASES=$(svn ls -v $RELEASE_REPO | sort -k1 -r | grep
$PRODUCT-[[:digit:]] | grep -v $PRODUCT-$TAG_WITHOUT_RC | tr -s ' ' | cut -d '
' -f 7)
RELEASE_COUNT=0