ci: change cache action to v2

Supposed to be faster.
This commit is contained in:
Ran Benita 2020-10-31 22:14:16 +02:00
parent f9d82a34f4
commit 76226182ae
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ jobs:
- uses: actions/setup-python@v2
- name: set PY
run: echo "name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}