forked from orbit-oss/flask
update cache action to v2 (#3749)
This commit is contained in:
parent
5bfe236fb5
commit
a1fb8f143f
1 changed files with 2 additions and 2 deletions
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
id: pip-cache
|
id: pip-cache
|
||||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||||
- name: cache pip
|
- name: cache pip
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
|
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
|
||||||
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
# See https://pre-commit.com/#github-actions-example
|
# See https://pre-commit.com/#github-actions-example
|
||||||
run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)"
|
run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)"
|
||||||
- name: cache pre-commit
|
- name: cache pre-commit
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pre-commit
|
path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue