3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-12 05:44:11 +00:00

Fix inverted cacheBin condition in save step

The cargo/bin directory was being cleaned when cacheBin was enabled,
which is the opposite of the intended behavior. Negate the condition
so that bin cleaning only runs when cacheBin is disabled.

Closes #204
This commit is contained in:
Jihyeon Kim 2026-02-06 20:05:25 +09:00
parent 11da8522bc
commit b51a2feef9
No known key found for this signature in database

View file

@ -61,7 +61,7 @@ async function run() {
core.debug(`${(e as any).stack}`);
}
if (config.cacheBin) {
if (!config.cacheBin) {
try {
core.info(`... Cleaning cargo/bin ...`);
await cleanBin(config.cargoBins);