mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-14 04:22:02 +00:00
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:
parent
df7a733e51
commit
025f2f3162
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- name: Sync Python Releases
|
- name: Sync Python Releases
|
||||||
run: |
|
run: |
|
||||||
uv run --isolated -- fetch-download-metadata.py
|
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
|
working-directory: ./crates/uv-python
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -360,10 +360,10 @@ def render(downloads: list[PythonDownload]) -> None:
|
||||||
|
|
||||||
|
|
||||||
async def find() -> None:
|
async def find() -> None:
|
||||||
token = os.environ.get("GH_TOKEN")
|
token = os.environ.get("GITHUB_TOKEN")
|
||||||
if not token:
|
if not token:
|
||||||
logging.warning(
|
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"}
|
headers = {"X-GitHub-Api-Version": "2022-11-28"}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue