From f8efd60d2dea71cf378cafb3f494ecf103ae1179 Mon Sep 17 00:00:00 2001 From: skanehira Date: Sat, 8 Feb 2025 01:22:20 +0900 Subject: [PATCH] feat: add shared-cache-key to inputs --- README.md | 1 + action.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 605859d..209e5d3 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a | `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | | | `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true | | `cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `key` | | +| `shared-cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `shared-key` | | | `matcher` | Enable problem matcher to surface build messages and formatting issues | true | | `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" | | `override` | Setup the last installed toolchain as the default via `rustup override` | true | diff --git a/action.yml b/action.yml index 21ef752..df6946e 100644 --- a/action.yml +++ b/action.yml @@ -38,6 +38,9 @@ inputs: cache-key: description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs." required: false + shared-cache-key: + description: "A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs." + required: false matcher: description: "Enable the Rust problem matcher" required: false @@ -200,3 +203,4 @@ runs: cache-directories: ${{inputs.cache-directories}} cache-on-failure: ${{inputs.cache-on-failure}} key: ${{inputs.cache-key}} + shared-key: ${{inputs.shared-cache-key}}