Skip to content

Commit f8efd60

Browse files
committed
feat: add shared-cache-key to inputs
1 parent 97db979 commit f8efd60

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
5858
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
5959
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true |
6060
| `cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `key` | |
61+
| `shared-cache-key` | Propagates the value to [`Swatinem/rust-cache`] as `shared-key` | |
6162
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
6263
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
6364
| `override` | Setup the last installed toolchain as the default via `rustup override` | true |

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ inputs:
3838
cache-key:
3939
description: "An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs."
4040
required: false
41+
shared-cache-key:
42+
description: "A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs."
43+
required: false
4144
matcher:
4245
description: "Enable the Rust problem matcher"
4346
required: false
@@ -200,3 +203,4 @@ runs:
200203
cache-directories: ${{inputs.cache-directories}}
201204
cache-on-failure: ${{inputs.cache-on-failure}}
202205
key: ${{inputs.cache-key}}
206+
shared-key: ${{inputs.shared-cache-key}}

0 commit comments

Comments
 (0)