From 3214fb2af73f94d4443d8cadebe3f51567595f02 Mon Sep 17 00:00:00 2001 From: Robin Palotai Date: Sat, 5 Feb 2022 21:32:13 +0100 Subject: [PATCH] Call out caveats with cache exclude patterns The pattern shown in the current README doesn't work as-is (see https://github.com/actions/cache/issues/494). Making it explicit in the README until fixed can save time for people trying to use the feature. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7c25a5..66526f9 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu ## What's New -* Added support for multiple paths, [glob patterns](https://github.com/actions/toolkit/tree/main/packages/glob), and single file caches. +* Added support for multiple paths, [glob patterns](https://github.com/actions/toolkit/tree/main/packages/glob), and single file caches (see [caveats on negative patterns](https://github.com/actions/cache/issues/494)). ```yaml - name: Cache multiple paths uses: actions/cache@v2 with: path: | - ~/cache + ~/cache/* !~/cache/exclude key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} ```