mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
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
This commit is contained in:
7
.github/workflows/rust-release.yml
vendored
7
.github/workflows/rust-release.yml
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user