Support multiple cache key files via glob patterns
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Currently, the cache:key:files feature supports "up to a maximum of two files" and they must be specified without glob patterns:
cache:
paths: [ .nuget/packages ]
key:
prefix: linux-nuget
files:
- .config/dotnet-tools.json
- packages.lock.json
It would be really nice to remove the limit and support glob patterns:
cache:
paths: [ .nuget/packages ]
key:
prefix: linux-nuget
files:
- "**/dotnet-tools.json"
- "**/packages.lock.json"
In particular, this is needed because each .NET project has its own lock file, and a .NET solution may contain many projects in subdirectories.
Edited by 🤖 GitLab Bot 🤖