Skip to content

Commit

Permalink
Fix python-build-standalone workflow (astral-sh#5327)
Browse files Browse the repository at this point in the history
## Summary

The script reads `GITHUB_TOKEN` instead. And since astral-sh#4853 merged, there
is no need to use `uv run --with`.
  • Loading branch information
j178 committed Jul 23, 2024
1 parent df7a733 commit 025f2f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-build-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions crates/uv-python/fetch-download-metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ def sort_key(download: PythonDownload) -> tuple:


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"}
Expand Down

0 comments on commit 025f2f3

Please sign in to comment.