mirror of
https://github.com/Swatinem/rust-cache
synced 2026-02-12 13:54:17 +00:00
update registry cleaning
This commit is contained in:
parent
911d8e9e55
commit
7b8626742a
7 changed files with 188 additions and 212 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { cleanTargetDir } from "./cleanup";
|
||||
import { cleanTargetDir, getCargoBins } from "./cleanup";
|
||||
import { CacheConfig, STATE_BINS, STATE_KEY } from "./config";
|
||||
|
||||
process.on("uncaughtException", (e) => {
|
||||
|
|
@ -29,7 +29,7 @@ async function run() {
|
|||
config.printInfo();
|
||||
core.info("");
|
||||
|
||||
const bins = await config.getCargoBins();
|
||||
const bins = await getCargoBins();
|
||||
core.saveState(STATE_BINS, JSON.stringify([...bins]));
|
||||
|
||||
core.info(`... Restoring cache ...`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue