From 7a3c5a83e4724bf7a7b5178f6b1f87f76a19703b Mon Sep 17 00:00:00 2001 From: Ian MacLeod Date: Thu, 17 Sep 2026 21:03:19 +0000 Subject: [PATCH] Serialize release asset uploads to avoid secondary rate limits (#46303) Upgrade `softprops/action-gh-release` from `v2.6.1` to `v3.0.3` and enable `preserve_order` in the Rust release workflow to upload assets serially, following GitHub's recommendation to avoid concurrent REST API requests. GitOrigin-RevId: d1fbbbb01e191967be303040cfa2949146a2292d --- .github/workflows/rust-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index 6722be1139..726795ebe6 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -1678,13 +1678,18 @@ jobs: cp scripts/install/install.ps1 dist/install.ps1 - name: Create GitHub Release - uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 + uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 with: name: ${{ steps.release_name.outputs.name }} tag_name: ${{ github.ref_name }} body_path: ${{ steps.release_notes.outputs.path }} files: dist/** overwrite_files: true + # Release asset uploads follow normal REST API behavior. GitHub recommends + # serial API requests to avoid secondary rate limits: + # https://docs.github.com/en/rest/releases/assets#upload-a-release-asset + # https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api#avoid-concurrent-requests + preserve_order: true make_latest: ${{ steps.release_name.outputs.make_latest }} # Mark as prerelease only when the version has a suffix after x.y.z # (e.g. -alpha, -beta). Otherwise publish a normal release.