mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
build
This commit is contained in:
parent
50a98698d0
commit
d00ebda289
1 changed files with 3 additions and 2 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -105169,6 +105169,7 @@ const cache_1 = __nccwpck_require__(4810);
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(1017));
|
||||||
const distribution_factory_1 = __nccwpck_require__(924);
|
const distribution_factory_1 = __nccwpck_require__(924);
|
||||||
function run() {
|
function run() {
|
||||||
|
var _a, _b, _c, _d;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
|
const versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
|
||||||
|
@ -105190,8 +105191,8 @@ function run() {
|
||||||
.readFileSync(versionFileName)
|
.readFileSync(versionFileName)
|
||||||
.toString()
|
.toString()
|
||||||
.trim();
|
.trim();
|
||||||
const semverRegExp = /(\d+\.\d+\.\d+.*ea.*$|\d+\.\d+\.\d+\+\d*$|\d+\.\d+\.\d+|\d+\.\d+|\d+\-ea$|\d+$)/;
|
const semverRegExp = /(?<version>(?<=(^|\s|\-))(\d+\S*))(\s|$)/;
|
||||||
let version = semverRegExp.test(contents) ? RegExp.$1 : '';
|
let version = ((_b = (_a = contents.match(semverRegExp)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.version) ? (_d = (_c = contents.match(semverRegExp)) === null || _c === void 0 ? void 0 : _c.groups) === null || _d === void 0 ? void 0 : _d.version : '';
|
||||||
let installed = false;
|
let installed = false;
|
||||||
while (!installed && version != '') {
|
while (!installed && version != '') {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue