diff --git a/dev/release/release_rc.sh b/dev/release/release_rc.sh index b466050af..da67be2f9 100755 --- a/dev/release/release_rc.sh +++ b/dev/release/release_rc.sh @@ -70,11 +70,11 @@ rc_hash="$(git rev-list --max-count=1 "${rc_tag}")" id="apache-arrow-go-${version}" tar_gz="${id}.tar.gz" -if [ "${RELEASE_SIGN}" -gt 0 ]; then - git_origin_url="$(git remote get-url origin)" - repository="${git_origin_url#*github.com?}" - repository="${repository%.git}" +git_origin_url="$(git remote get-url origin)" +repository="${git_origin_url#*github.com?}" +repository="${repository%.git}" +if [ "${RELEASE_SIGN}" -gt 0 ]; then echo "Looking for GitHub Actions workflow on ${repository}:${rc_tag}" run_id="" while [ -z "${run_id}" ]; do @@ -109,6 +109,15 @@ if [ "${RELEASE_UPLOAD}" -gt 0 ]; then "${tar_gz}.asc" fi +gh release download "${rc_tag}" \ + --dir . \ + --pattern "${tar_gz}.sha512" \ + --repo "${repository}" \ + --clobber + +SOURCE_TARBALL_HASH=$(awk '{print $1}' "${tar_gz}.sha512") +rm -f "${tar_gz}.sha512" + echo "Draft email for dev@arrow.apache.org mailing list" echo "" echo "---------------------------------------------------------" @@ -126,6 +135,10 @@ ${rc_hash} [1] The source release rc${rc} is hosted at [2]. +This is not a permanent URL. If the RC is accepted, it will be moved to +the final release location. The SHA512 hash of the source tarball is: +${SOURCE_TARBALL_HASH}. + Please download, verify checksums and signatures, run the unit tests, and vote on the release. See [3] for how to validate a release candidate.