Skip to content

Commit 4c3dcb4

Browse files
authored
MINOR: Upload release artifacts individually with sleep (#590)
According to cli/cli#9586, GitHub CLI doesn't respect the GitHub rate limits and GitHub is uninterested in fixing this.
1 parent b933d2e commit 4c3dcb4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/rc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,12 @@ jobs:
600600
--prerelease \
601601
--repo ${GITHUB_REPOSITORY} \
602602
--title "Apache Arrow Java ${version} RC${rc}" \
603-
--verify-tag \
604-
artifacts/*/*
603+
--verify-tag
604+
# GitHub CLI does not respect their own rate limits
605+
# https://github.com/cli/cli/issues/9586
606+
for artifact in artifacts/*/*; do
607+
sleep 1
608+
gh release upload ${GITHUB_REF_NAME} $artifact
609+
done
605610
env:
606611
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)