Fix python-build-standalone workflow (#5327)

## Summary

The script reads `GITHUB_TOKEN` instead. And since #4853 merged, there
is no need to use `uv run --with`.
This commit is contained in:
Jo 2024-07-23 20:20:36 +08:00 committed by GitHub
parent df7a733e51
commit 025f2f3162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ jobs:
- name: Sync Python Releases
run: |
uv run --isolated -- fetch-download-metadata.py
uv run --isolated --with chevron-blue -- template-download-metadata.py
uv run --isolated -- template-download-metadata.py
working-directory: ./crates/uv-python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -360,10 +360,10 @@ def render(downloads: list[PythonDownload]) -> None:
async def find() -> None:
token = os.environ.get("GH_TOKEN")
token = os.environ.get("GITHUB_TOKEN")
if not token:
logging.warning(
"`GH_TOKEN` env var not found, you may hit rate limits for GitHub API requests."
"`GITHUB_TOKEN` env var not found, you may hit rate limits for GitHub API requests."
)
headers = {"X-GitHub-Api-Version": "2022-11-28"}