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-java.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c3dcb40 MINOR: Upload release artifacts individually with sleep (#590)
4c3dcb40 is described below

commit 4c3dcb4087083e7daeaf5d7bc3a61d44729635ac
Author: David Li <[email protected]>
AuthorDate: Wed Feb 5 22:50:11 2025 -0500

    MINOR: Upload release artifacts individually with sleep (#590)
    
    According to https://github.com/cli/cli/issues/9586, GitHub CLI doesn't
    respect the GitHub rate limits and GitHub is uninterested in fixing
    this.
---
 .github/workflows/rc.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml
index 9717f30a..67248a40 100644
--- a/.github/workflows/rc.yml
+++ b/.github/workflows/rc.yml
@@ -600,7 +600,12 @@ jobs:
             --prerelease \
             --repo ${GITHUB_REPOSITORY} \
             --title "Apache Arrow Java ${version} RC${rc}" \
-            --verify-tag \
-            artifacts/*/*
+            --verify-tag
+          # GitHub CLI does not respect their own rate limits
+          # https://github.com/cli/cli/issues/9586
+          for artifact in artifacts/*/*; do
+            sleep 1
+            gh release upload ${GITHUB_REF_NAME} $artifact
+          done
         env:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Reply via email to