Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions dev/release/release_rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "---------------------------------------------------------"
Expand All @@ -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.

Expand Down