cache key

The name a cache entry is saved and looked up under, usually built from the operating system and a hash of the lock file.

In more detail

Because an entry is never overwritten, the key must change exactly when the dependencies change. A key without a content hash is filled once and then restores stale dependencies forever.

Example

key: ${{ runner.os }}-pip-${{ hashFiles('requirements.lock') }}

Related terms

Taught in

References

Certification courses