fix env filtering

This commit is contained in:
Arpad Borsos 2022-07-09 15:31:33 +02:00
parent f6e3aa3e12
commit cb43a50800
No known key found for this signature in database
GPG Key ID: FC7BCA77824B3298

View File

@ -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 = [];