patch to extract file from other location

This commit is contained in:
mahabaleshwars 2024-03-14 14:39:38 +05:30
parent 5896cecc08
commit a847c75719
3 changed files with 17 additions and 0 deletions

5
dist/setup/index.js vendored
View file

@ -125729,6 +125729,11 @@ exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
function getVersionFromFileContent(content, distributionName, versionFile) {
var _a, _b, _c, _d, _e;
let javaVersionRegExp;
const path = __nccwpck_require__(71017);
function getFileName(versionFile) {
return path.basename(versionFile);
}
const versionFileName = getFileName(versionFile);
if (versionFile == '.tool-versions') {
javaVersionRegExp =
/^(java\s+)(?:\S*-)?v?(?<version>(\d+)(\.\d+)?(\.\d+)?(\+\d+)?(-ea(\.\d+)?)?)$/m;