1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-22 16:40:48 +00:00

Adjust cache key name

Make the job name the first part of the cache key since
it is the only part that isn't variable.
This commit is contained in:
Nicholas McDonnell 2020-07-30 11:08:22 -04:00
parent 6ab69f4f51
commit 969efdd0bb
No known key found for this signature in database
GPG key ID: 7994ADE2A56BE5D1

View file

@ -29,12 +29,12 @@ jobs:
path: |
${{ env.PIP_CACHE_DIR }}
${{ env.PRE_COMMIT_CACHE_DIR }}
key: "${{ runner.os }}-lint-py${{ env.PY_VERSION }}-\
key: "lint-${{ runner.os }}-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}"
restore-keys: |
${{ runner.os }}-lint-py${{ env.PY_VERSION }}-
${{ runner.os }}-lint-
lint-${{ runner.os }}-py${{ env.PY_VERSION }}-
lint-${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip