Lightweight coding agent that runs in your terminal
Rust
Serialize release asset uploads to avoid secondary rate limits (#46303)
Ian MacLeod7a3c5a83e472
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.ymlindex 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.3with: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: truemake_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.