Skip to content

Commit 34e2b08

Browse files
authored
GH-609: [Release] Wait between artifact uploads (#610)
The GitHub CLI does not respect GitHub API rate limits and will not fix this (cli/cli#9586). Closes #609.
1 parent 94ca5a0 commit 34e2b08

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,16 @@ jobs:
5454
--generate-notes \
5555
--repo ${GITHUB_REPOSITORY} \
5656
--title "Apache Arrow Java ${version}" \
57-
--verify-tag \
58-
dists/*
57+
--verify-tag
58+
59+
# GitHub CLI does not respect their own rate limits
60+
# https://github.com/cli/cli/issues/9586
61+
for artifact in dists/*; do
62+
sleep 1
63+
gh release upload ${GITHUB_REF_NAME} \
64+
--repo ${GITHUB_REPOSITORY} \
65+
$artifact
66+
done
5967
- name: Checkout for publishing docs
6068
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6169
with:

0 commit comments

Comments
 (0)