Fail when cache local path does not exist when trying to cache (#163)

Can be disabled by setting `ignore-nothing-to-cache: true`
This commit is contained in:
Kevin Stillhammer
2024-11-23 16:30:54 +01:00
committed by GitHub
parent 691a091485
commit ed171c292b
7 changed files with 103 additions and 44 deletions

View File

@ -8,6 +8,8 @@ export const cacheSuffix = core.getInput("cache-suffix") || "";
export const cacheLocalPath = getCacheLocalPath();
export const cacheDependencyGlob = core.getInput("cache-dependency-glob");
export const pruneCache = core.getInput("prune-cache") === "true";
export const ignoreNothingToCache =
core.getInput("ignore-nothing-to-cache") === "true";
export const toolBinDir = getToolBinDir();
export const toolDir = getToolDir();
export const githubToken = core.getInput("github-token");