From 5224f20b2a41e09da4dbdf76beee3203518be386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Wed, 17 Jul 2024 09:49:27 +0200 Subject: [PATCH] GH-43270: [Release] Fix input variables on post-01-tag.sh (#43271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change Scripts is failing to be executed ### What changes are included in this PR? Fixing the script ### Are these changes tested? Locally during the release ### Are there any user-facing changes? No * GitHub Issue: #43270 Lead-authored-by: Raúl Cumplido Co-authored-by: Sutou Kouhei Signed-off-by: Sutou Kouhei --- dev/release/post-01-tag.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dev/release/post-01-tag.sh b/dev/release/post-01-tag.sh index df0f6756c0e7c..2fa48f1230219 100755 --- a/dev/release/post-01-tag.sh +++ b/dev/release/post-01-tag.sh @@ -17,7 +17,7 @@ # specific language governing permissions and limitations # under the License. -set -e +set -eu set -o pipefail if [ "$#" -ne 2 ]; then @@ -25,8 +25,11 @@ if [ "$#" -ne 2 ]; then exit fi +version=$1 +rc=$2 + # Create the release tag and trigger the Publish Release workflow. -release_candidate_tag=apache-arrow-${version}-rc${num} release_tag=apache-arrow-${version} -git tag -a ${release_tag} ${release_candidate_tag}^{} -m "[Release] Apache Arrow Release ${version}" +release_candidate_tag=${release_tag}-rc${rc} +git tag -a ${release_tag} ${release_candidate_tag} -m "[Release] Apache Arrow Release ${version}" git push apache ${release_tag}