This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 050fb8011e MINOR: [Dev][Release] Stop post-04-website.sh script if 
archery isn't available (#44823)
050fb8011e is described below

commit 050fb8011eb176540f59b720a3296ace9474b816
Author: Bryce Mecum <[email protected]>
AuthorDate: Sun Nov 24 17:03:39 2024 -0800

    MINOR: [Dev][Release] Stop post-04-website.sh script if archery isn't 
available (#44823)
    
    ### Rationale for this change
    
    The release script at `dev/release/post-04-website.sh` doesn't quite work 
right if archery isn't available. The PR gets made but the changelog isn't 
included. See when this happened during the 18.0.0 release: 
https://github.com/apache/arrow-site/pull/551#discussion_r1822264990.
    
    ### What changes are included in this PR?
    
    Before the script does anything meaningful, it checks for archery and stops 
if it's not available.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    
    Lead-authored-by: Bryce Mecum <[email protected]>
    Co-authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 dev/release/post-04-website.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev/release/post-04-website.sh b/dev/release/post-04-website.sh
index a3c4dbbe07..a2b0bd6152 100755
--- a/dev/release/post-04-website.sh
+++ b/dev/release/post-04-website.sh
@@ -29,6 +29,12 @@ if [ "$#" -ne 2 ]; then
   exit 1
 fi
 
+# Verify archery is available and stop if not
+if ! archery --help > /dev/null 2>&1; then
+  echo "This script requires archery. Please install it and try again."
+  exit 1
+fi
+
 previous_version=$1
 version=$2
 

Reply via email to