Skip to content

Commit 4ed73f6

Browse files
committed
test
1 parent c2da0ea commit 4ed73f6

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/save.ts

+6-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as core from "@actions/core";
22
import * as exec from "@actions/exec";
33

44
import { cleanBin, cleanGit, cleanRegistry, cleanTargetDir } from "./cleanup";
5-
import { CacheConfig } from "./config";
5+
import { CacheConfig, isCacheUpToDate } from "./config";
66
import { getCacheProvider, reportError } from "./utils";
77

88
process.on("uncaughtException", (e) => {
@@ -22,20 +22,13 @@ async function run() {
2222
}
2323

2424
try {
25-
//const cfg = CacheConfig.fromState();
26-
//console.log("CARGO BINS - SAVE:");
27-
//console.log(cfg.cargoBins);
28-
29-
//if (isCacheUpToDate()) {
30-
// core.info(`Cache up-to-date.`);
31-
// return;
32-
//}
25+
if (isCacheUpToDate()) {
26+
core.info(`Cache up-to-date.`);
27+
return;
28+
}
3329

34-
//const config = CacheConfig.fromState();
35-
const config = await CacheConfig.new();
30+
const config = CacheConfig.fromState();
3631
config.printInfo(cacheProvider);
37-
console.log("CARGO BINS - SAVE:");
38-
console.log(config.cargoBins);
3932
core.info("");
4033

4134
// TODO: remove this once https://github.com/actions/toolkit/pull/553 lands

0 commit comments

Comments
 (0)