From af97157ae6983e01c4eabbfb118b3e2ac549a4c0 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 4 Jul 2022 12:24:58 +0300 Subject: [PATCH] doc: Add multiple wildcards example to readme Based on https://www.npmjs.com/package/@actions/glob (the library used for cache file globbing), newline-separating multiple patterns is accepted. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 74e77ae..9450020 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,21 @@ steps: - run: pipenv install ``` +**Using a list of wildcard patterns to cache dependencies** +```yaml +steps: +- uses: actions/checkout@v3 +- uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' + cache-dependency-path: | + **/setup.cfg + **/requirements*.txt +- run: pip install -e . -r subdirectory/requirements-dev.txt +``` + + # Environment variables The `update-environment` flag defaults to `true`.