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:
parent
11da8522bc
commit
b51a2feef9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue