From 30ce38e20653a26dd16caa082b010cec334ccf56 Mon Sep 17 00:00:00 2001 From: Allan Lewis Date: Tue, 4 Nov 2025 15:38:32 +0000 Subject: [PATCH] Correct description of `cache-dependency-glob` (#676) As per the sole commit: > When `working-directory` is set, paths in `cache-dependency-glob` are relative to it. --- action.yml | 2 +- docs/caching.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 1e05946..eb7e637 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,7 @@ inputs: default: "auto" cache-dependency-glob: description: - "Glob pattern to match files relative to the repository root to control + "Glob pattern to match files relative to the working directory to control the cache." default: | **/*requirements*.txt diff --git a/docs/caching.md b/docs/caching.md index 7cd9ab6..ad2e28b 100644 --- a/docs/caching.md +++ b/docs/caching.md @@ -41,7 +41,7 @@ use it in subsequent steps. For example, to use the cache in the above case: If you want to control when the GitHub Actions cache is invalidated, specify a glob pattern with the `cache-dependency-glob` input. The GitHub Actions cache will be invalidated if any file matching the glob pattern -changes. If you use relative paths, they are relative to the repository root. +changes. If you use relative paths, they are relative to the working directory. > [!NOTE] >