1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-09-20 19:32:38 +00:00

Merge pull request #38 from cisagov/change_cache_paths_to_env_variables

Change Cache Paths to Environment Variables
This commit is contained in:
Nick M 2020-03-04 10:46:53 -05:00 committed by GitHub
commit 241484abe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,10 @@ on: [
pull_request
]
env:
PIP_CACHE_DIR: ~/.cache/pip
PRE_COMMIT_CACHE_DIR: ~/.cache/pre-commit
jobs:
build:
runs-on: ubuntu-latest
@ -21,7 +25,7 @@ jobs:
- name: Cache pip test requirements
uses: actions/cache@v1
with:
path: ~/.cache/pip
path: ${{ env.PIP_CACHE_DIR }}
key: "${{ runner.os }}-pip-test-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/requirements-test.txt') }}"
restore-keys: |
@ -31,7 +35,7 @@ jobs:
- name: Cache pre-commit hooks
uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
path: ${{ env.PRE_COMMIT_CACHE_DIR }}
key: "${{ runner.os }}-pre-commit-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}"
- name: Install dependencies