GitHub Actions: update cache key to include interpreter path (#7835)

And make it more portable by using python
This commit is contained in:
Xavier Fernandez 2020-03-09 15:17:17 +01:00 committed by GitHub
parent 3487df553f
commit dfd6a163bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-
- name: set PY
run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)"
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit