You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`url`|`cache-to`,`cache-from`| String |`$ACTIONS_CACHE_URL` or `$ACTIONS_RESULTS_URL`| Cache server URL, see [authentication][1]. |
35
+
|`url`|`cache-to`,`cache-from`| String |`$ACTIONS_CACHE_URL` or `$ACTIONS_RESULTS_URL`| Cache server URL, see [authentication][1]. Ignored when `version=2`.|
36
36
|`url_v2`|`cache-to`,`cache-from`| String |`$ACTIONS_RESULTS_URL`| Cache v2 server URL, see [authentication][1]. |
37
37
|`token`|`cache-to`,`cache-from`| String |`$ACTIONS_RUNTIME_TOKEN`| Access token, see [authentication][1]. |
38
38
|`scope`|`cache-to`,`cache-from`| String |`buildkit`| Which scope cache object belongs to, see [scope][2]|
@@ -41,10 +41,12 @@ The following table describes the available CSV parameters that you can pass to
41
41
|`timeout`|`cache-to`,`cache-from`| String |`10m`| Max duration for importing or exporting cache before it's timed out. |
42
42
|`repository`|`cache-to`| String || GitHub repository used for cache storage. |
43
43
|`ghtoken`|`cache-to`| String || GitHub token required for accessing the GitHub API. |
44
+
|`version`|`cache-to`,`cache-from`| String |`1` unless `$ACTIONS_CACHE_SERVICE_V2` is set, then `2`| Selects GitHub Actions cache version, see [version][4]|
still apply. Only the cache for the current branch, the base branch and the
79
81
default branch is accessible by a workflow.
80
82
83
+
## Version
84
+
85
+
If you don’t set `version` explicitly, the default is v1. However, if the environment variable `$ACTIONS_CACHE_SERVICE_V2` is set to a value interpreted as `true` ( `1`, `true`, `yes`), then v2 is used automatically.
86
+
87
+
Only one URL is relevant at a time:
88
+
89
+
- With v1, use `url` (defaults to `$ACTIONS_CACHE_URL`).
90
+
- With v2, use `url_v2` (defaults to `$ACTIONS_RESULTS_URL`).
0 commit comments