diff --git a/src/constants.ts b/src/constants.ts index a3327b20..fbf6eaad 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -16,7 +16,7 @@ export enum Inputs { Token = "token", // Input for cache, save action - PurgeEnabled = "purge-enabled", // Input for cache, save action + Purge = "purge", // Input for cache, save action PurgeKey = "purge-key", // Input for cache, save action PurgeAccessed = "purge-accessed", // Input for cache, save action PurgeAccessedMaxAge = "purge-accessed-max-age", // Input for cache, save action diff --git a/src/purge.ts b/src/purge.ts index c5cf27e1..2bb3a08c 100644 --- a/src/purge.ts +++ b/src/purge.ts @@ -128,7 +128,7 @@ async function purge(key: string) { } export async function purgeCaches(key: string) { - const purgeEnabled = utils.getInputAsBool(Inputs.PurgeEnabled); + const purgeEnabled = utils.getInputAsBool(Inputs.Purge); if (purgeEnabled) { await purge(key); }