Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Merge pull request #14 from uranusjr/cache-key-python-impl
Use python -c to get the interpreter path hash
  • Loading branch information
asottile committed Mar 9, 2020
2 parents ee269b6 + 4d8b5b8 commit b9549d1fa8d1524f60d6a446e7fa0fa4a13709f5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: set PY
run: echo "::set-env name=PY::$((python --version --version && which python) | 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
path: ~/.cache/pre-commit

0 comments on commit b9549d1

Please sign in to comment.