From a6a6614715a9c92585ee090a30000acacdd0fe54 Mon Sep 17 00:00:00 2001 From: Zeev Rotshtein Date: Wed, 27 Nov 2024 18:32:08 +0000 Subject: [PATCH] Set pythonLocation environment variable for cache key --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index 069e687..8871d72 100644 --- a/action.yml +++ b/action.yml @@ -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