From 9db5252547dbdbe97c52e024e448f64ee81d343d Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sat, 11 Dec 2021 08:57:55 +0800 Subject: [PATCH] caching-dependencies-to-speed-up-workflows.md: clarify base of a relative path The relative path is in fact relative to the GitHub workspace directory, not the step working directory. So it is not affected by run.working-directory. --- .../caching-dependencies-to-speed-up-workflows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md b/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md index 603f7c540d..26417931c0 100644 --- a/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md +++ b/content/actions/advanced-guides/caching-dependencies-to-speed-up-workflows.md @@ -88,7 +88,7 @@ For more information, see [`actions/cache`](https://github.com/actions/cache). ### Input parameters for the `cache` action - `key`: **Required** The key created when saving a cache and the key used to search for a cache. Can be any combination of variables, context values, static strings, and functions. Keys have a maximum length of 512 characters, and keys longer than the maximum length will cause the action to fail. -- `path`: **Required** The file path on the runner to cache or restore. The path can be an absolute path or relative to the working directory. +- `path`: **Required** The file path on the runner to cache or restore. The path can be an absolute path or relative to the workspace directory. - Paths can be either directories or single files, and glob patterns are supported. - With `v2` of the `cache` action, you can specify a single path, or you can add multiple paths on separate lines. For example: ```