From a1fb8f143f5deb545a10ac2758cb7a2b2bd68df3 Mon Sep 17 00:00:00 2001 From: Ryuichi Watanabe Date: Mon, 31 Aug 2020 10:53:09 +0900 Subject: [PATCH] update cache action to v2 (#3749) --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 26bd1573..0e0fc08f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -39,7 +39,7 @@ jobs: id: pip-cache run: echo "::set-output name=dir::$(pip cache dir)" - name: cache pip - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ${{ steps.pip-cache.outputs.dir }} 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 run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)" - name: cache pre-commit - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}