mirror of
https://github.com/Swatinem/rust-cache.git
synced 2024-11-22 13:57:10 +08:00
fix env filtering
This commit is contained in:
parent
f6e3aa3e12
commit
cb43a50800
@ -93,7 +93,7 @@ export class CacheConfig {
|
||||
|
||||
// these prefixes should cover most of the compiler / rust / cargo keys
|
||||
const envPrefixes = ["CARGO", "CC", "CXX", "CMAKE", "RUST"];
|
||||
envPrefixes.push(...core.getInput("envVars").split(/\s+/));
|
||||
envPrefixes.push(...core.getInput("envVars").split(/\s+/).filter(Boolean));
|
||||
|
||||
// sort the available env vars so we have a more stable hash
|
||||
const keyEnvs = [];
|
||||
|
Loading…
Reference in New Issue
Block a user