📦 Hardcoded "pip" caching path

This commit is contained in:
ful1e5 2021-02-03 19:00:49 +05:30
parent 21bcebae6c
commit 376b4d3596

View file

@ -44,15 +44,11 @@ jobs:
with: with:
node-version: "12.x" node-version: "12.x"
- name: Get pip cache directory path
id: pip-cache-dir-path
run: echo "::set-output name=dir::$(pip cache dir)"
- name: Caching pip packages - name: Caching pip packages
uses: actions/cache@v2 uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
with: with:
path: ${{ steps.pip-cache-dir-path.output.dir }} path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-