Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #436 from multinet-app/gh-actions-cache
Browse files Browse the repository at this point in the history
Add pipenv version string to cache hash
  • Loading branch information
waxlamp committed Jul 23, 2020
2 parents ba7f385 + ff56994 commit 910a8d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ jobs:
- name: Check generated requirements against existing requirements
run: diff requirements.txt generated-requirements.txt

- name: Capture pipenv version
run: echo "::set-output name=pipenv-version::$(pipenv --version | sed 's/,//g')"
id: pipenv-version

- uses: actions/cache@v1
id: multinet-cache
with:
path: /home/runner/.local/share/virtualenvs/
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinet-server/multinet-server/Pipfile.lock') }}-pipenv-cache-2
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinet-server/multinet-server/Pipfile.lock') }}-${{ steps.pipenv-version.outputs.pipenv-version }}-pipenv-cache-2

- name: Install pipenv packages
if: steps.multinet-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 910a8d8

Please sign in to comment.