1
0
mirror of synced 2026-01-05 03:06:35 -05:00

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.
This commit is contained in:
Zhiming Wang
2021-12-11 08:57:55 +08:00
parent 43d0f0a4b2
commit 9db5252547

View File

@@ -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:
```