forked from apache/arrow-adbc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dev/release): decouple version numbers
Fixes apache#1490.
- Loading branch information
Showing
15 changed files
with
298 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,27 +18,27 @@ | |
|
||
set -euo pipefail | ||
|
||
main() { | ||
local -r source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
local -r source_top_dir="$( cd "${source_dir}/../../" && pwd )" | ||
|
||
local -r version="$1" | ||
local -r rc_number="$2" | ||
local -r tag="apache-arrow-adbc-${version}-rc${rc_number}" | ||
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
source "${SOURCE_DIR}/utils-common.sh" | ||
source "${SOURCE_DIR}/utils-prepare.sh" | ||
|
||
: ${WORKFLOW_REF:="main"} | ||
: ${REPOSITORY:="apache/arrow-adbc"} | ||
main() { | ||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 <rc-number>" | ||
echo "Usage: $0 0" | ||
exit | ||
fi | ||
|
||
export SOURCE_DIR="${source_dir}" | ||
source "${source_top_dir}/dev/release/utils-prepare.sh" | ||
local -r rc_number="$1" | ||
local -r tag="apache-arrow-adbc-${RELEASE}-rc${rc_number}" | ||
|
||
echo "Starting GitHub Actions workflow on ${REPOSITORY} for ${version} RC${rc_number}" | ||
echo "Starting GitHub Actions workflow on ${REPOSITORY} for ${RELEASE} RC${rc_number}" | ||
|
||
gh workflow run \ | ||
--repo "${REPOSITORY}" \ | ||
--ref "${WORKFLOW_REF}" \ | ||
verify.yml \ | ||
--raw-field version="${version}" \ | ||
--raw-field version="${RELEASE}" \ | ||
--raw-field rc="${rc_number}" | ||
|
||
local run_id="" | ||
|
@@ -56,7 +56,7 @@ main() { | |
echo "Started GitHub Actions workflow with ID: ${run_id}" | ||
echo "You can wait for completion via: gh run watch --repo ${REPOSITORY} ${run_id}" | ||
|
||
set_resolved_issues "${version}" | ||
set_resolved_issues "${RELEASE}" | ||
|
||
echo "The following draft email has been created to send to the" | ||
echo "[email protected] mailing list" | ||
|
@@ -67,7 +67,7 @@ main() { | |
|
||
cat <<MAIL | ||
To: [email protected] | ||
Subject: [VOTE] Release Apache Arrow ADBC ${version} - RC${rc_number} | ||
Subject: [VOTE] Release Apache Arrow ADBC ${RELEASE} - RC${rc_number} | ||
Hello, | ||
|
@@ -91,7 +91,7 @@ The vote will be open for at least 72 hours. | |
Note: to verify APT/YUM packages on macOS/AArch64, you must \`export DOCKER_DEFAULT_PLATFORM=linux/amd64\`. (Or skip this step by \`export TEST_APT=0 TEST_YUM=0\`.) | ||
[1]: https://github.com/apache/arrow-adbc/issues?q=is%3Aissue+milestone%3A%22ADBC+Libraries+${version}%22+is%3Aclosed | ||
[1]: https://github.com/apache/arrow-adbc/issues?q=is%3Aissue+milestone%3A%22ADBC+Libraries+${RELEASE}%22+is%3Aclosed | ||
[2]: https://github.com/apache/arrow-adbc/commit/${commit} | ||
[3]: https://dist.apache.org/repos/dist/dev/arrow/${tag}/ | ||
[4]: https://apache.jfrog.io/artifactory/arrow/almalinux-rc/ | ||
|
Oops, something went wrong.