5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-07 10:46:56 +00:00

also include the location of the python in the cache key

This commit is contained in:
Anthony Sottile 2020-03-06 13:23:31 -08:00
parent 4fce1afd0c
commit ee269b64a6

View file

@ -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 | sha256sum | cut -d' ' -f1)"
run: echo "::set-env name=PY::$((python --version --version && which python) | sha256sum | cut -d' ' -f1)"
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit