Skip to content

Commit 359a70e

Browse files
committed
2.2.0
1 parent ecee04e commit 359a70e

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.2.0
4+
5+
- Add new `save-if` option to always restore, but only conditionally save the cache.
6+
37
## 2.1.0
48

59
- Only hash `Cargo.{lock,toml}` files in the configured workspace directories.

dist/save/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64922,7 +64922,8 @@ process.on("uncaughtException", (e) => {
6492264922
}
6492364923
});
6492464924
async function run() {
64925-
if (!cache.isFeatureAvailable()) {
64925+
const save = core.getInput("save-if").toLowerCase() || "true";
64926+
if (!(cache.isFeatureAvailable() && save === "true")) {
6492664927
return;
6492764928
}
6492864929
try {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "rust-cache",
4-
"version": "2.1.0",
4+
"version": "2.2.0",
55
"description": "A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.",
66
"keywords": [
77
"actions",

0 commit comments

Comments
 (0)