Skip to content

Commit

Permalink
fix: purge input
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Aug 27, 2023
1 parent b178d6c commit f2dabd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/purge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f2dabd9

Please sign in to comment.