From 4972d336c4e9e174f481655a60c7153fd976100a Mon Sep 17 00:00:00 2001
From: David Li
Date: Thu, 6 Feb 2025 12:32:30 +0900
Subject: [PATCH] MINOR: Upload release artifacts individually with sleep
---
.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 9717f30a9..67248a408 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 }}