From cb43a508002e64af8e986b0c5eb5bda87810f2ec Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Sat, 9 Jul 2022 15:31:33 +0200 Subject: [PATCH] fix env filtering --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 42ce7bc..c8379e4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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 = [];