From 6b9048689bc83ad904b1dc36b4a94a9a48b33921 Mon Sep 17 00:00:00 2001 From: Ryan-Brice <182604967+Ryan-Brice@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:54:11 +0800 Subject: [PATCH] docs: Update cache key generation details in README.md to match introduced key option logic --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb0d782..e618cd5 100644 --- a/README.md +++ b/README.md @@ -131,12 +131,13 @@ This action currently caches the following files/directories: This cache is automatically keyed by: -- the github [`job_id`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id), +- the github [`job_id`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) (if `add-job-id-key` is `"true"`), - the rustc release / host / hash, -- the value of some compiler-specific environment variables (eg. RUSTFLAGS, etc), and -- a hash of all `Cargo.lock` / `Cargo.toml` files found anywhere in the repository (if present). -- a hash of all `rust-toolchain` / `rust-toolchain.toml` files in the root of the repository (if present). -- a hash of all `.cargo/config.toml` files in the root of the repository (if present). +- the following values, if `add-rust-environment-hash-key` is `"true"`: + - the value of some compiler-specific environment variables (eg. RUSTFLAGS, etc), and + - a hash of all `Cargo.lock` / `Cargo.toml` files found anywhere in the repository (if present). + - a hash of all `rust-toolchain` / `rust-toolchain.toml` files in the root of the repository (if present). + - a hash of all `.cargo/config.toml` files in the root of the repository (if present). An additional input `key` can be provided if the builtin keys are not sufficient.