Purge cache in cache key (#423)

Fixes: #416
This commit is contained in:
Kevin Stillhammer 2025-05-23 09:43:52 +02:00 committed by GitHub
parent b3d7ca7ac0
commit e3d2ea5ff3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 16 deletions

8
dist/save-cache/index.js generated vendored
View file

@ -88715,7 +88715,8 @@ async function computeKeys() {
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
const pythonVersion = await getPythonVersion();
const platform = await (0, platforms_1.getPlatform)();
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
const pruned = inputs_1.pruneCache ? "-pruned" : "";
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${pythonVersion}${pruned}${cacheDependencyPathHash}${suffix}`;
}
async function getPythonVersion() {
if (inputs_1.pythonVersion !== "") {
@ -89014,7 +89015,7 @@ exports.ignoreNothingToCache = core.getInput("ignore-nothing-to-cache") === "tru
exports.ignoreEmptyWorkdir = core.getInput("ignore-empty-workdir") === "true";
exports.toolBinDir = getToolBinDir();
exports.toolDir = getToolDir();
exports.serverUrl = getServerUrl();
exports.serverUrl = core.getInput("server-url");
exports.githubToken = core.getInput("github-token");
function getEnableCache() {
const enableCacheInput = core.getInput("enable-cache");
@ -89071,9 +89072,6 @@ function expandTilde(input) {
}
return input;
}
function getServerUrl() {
return core.getInput("server-url");
}
/***/ }),