Skip to content

Commit

Permalink
Set pythonLocation environment variable for cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevro committed Nov 27, 2024
1 parent 9a8475b commit a6a6614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ runs:
with:
enable-cache: true
cache-dependency-glob: '.pre-commit-config.yaml'
- run: uv run --isolated --no-sync python -c "import os, sys; print(f'pythonLocation={sys.executable}', file=open(os.environ['GITHUB_ENV'], 'a'))"
shell: bash
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
Expand Down

0 comments on commit a6a6614

Please sign in to comment.