From 7e60f058d1c9cbcc6e23bbc86971c1188a4cb746 Mon Sep 17 00:00:00 2001 From: Twenty Panda Date: Sat, 22 Jun 2024 22:20:14 +0200 Subject: [PATCH] user: actions: add examples to the cache --- docs/user/actions.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/user/actions.md b/docs/user/actions.md index 72c52c92..717a0a59 100644 --- a/docs/user/actions.md +++ b/docs/user/actions.md @@ -166,8 +166,11 @@ by using the https://code.forgejo.org/actions/cache action. There is no guarantee that the cache is populated, even when two `jobs` run in sequence. It is not a substitute for `artifacts`. -Note that [actions/cache](https://code.forgejo.org/actions/cache) has `zstd` -as a dependency for creating tar archives in the runner. +See also the [set of examples](https://code.forgejo.org/forgejo/end-to-end/src/branch/main/actions/example-cache/.forgejo/workflows/). + +> **NOTE:** [actions/cache](https://code.forgejo.org/actions/cache) will us `zstd` if present when compressing files to be sent to the cache. It is faster than the default compression. + +> **NOTE:** if the runner is not configured to provide a cache, [actions/cache](https://code.forgejo.org/actions/cache) will fail with the following error: `Cache action is only supported on GHES version >= 3.5`. ## Auto cancellation of workflows